Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

PostgreSQL Exam PGCES-02 Topic 5 Question 45 Discussion

Actual exam question for PostgreSQL's PGCES-02 exam
Question #: 45
Topic #: 5
[All PGCES-02 Questions]

Select two correct statements that describe what occurs on the client side when the following command is executed. pg_ctl -m smart stop

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Winfred
2 months ago
Okay, let's see... A and C seem the most likely to me. I'm picturing the server just sitting there, arms crossed, refusing new connections until the existing ones wrap up.
upvoted 0 times
...
Anastacia
2 months ago
Haha, I bet the exam writers just wanted to see if anyone would pick D 'cause it sounds hilarious. Like, 'Oh, the server's shutting down? Nah, we'll just keep on truckin'!'
upvoted 0 times
Margarita
19 days ago
E) Connected clients receive a message saying that the server will soon be shutdown.
upvoted 0 times
...
Levi
28 days ago
B) The running transaction for a connected client is rolled back and the connection is disconnected forcibly.
upvoted 0 times
...
Shenika
2 months ago
A) Clients will not be able to make new connections.
upvoted 0 times
...
...
Ruthann
2 months ago
I'm not sure about E, does the server really send a message to connected clients? Seems like that's not mentioned in the command description.
upvoted 0 times
Donette
1 months ago
C) Connections are terminated after the currently running transactions have finished.
upvoted 0 times
...
Monte
1 months ago
A) Clients will not be able to make new connections.
upvoted 0 times
...
...
Pedro
2 months ago
I think the correct answers are B and C. The command will stop the server in a 'smart' mode, which means that it'll wait for current transactions to finish before disconnecting clients.
upvoted 0 times
Kattie
2 months ago
That's correct. Clients will not be able to make new connections and the server will shutdown after current transactions are done.
upvoted 0 times
...
Art
2 months ago
Yes, you're right. The running transaction is rolled back and connections are terminated after transactions finish.
upvoted 0 times
...
Alline
2 months ago
I think the correct answers are B and C.
upvoted 0 times
...
...
Shaun
3 months ago
I'm not sure about statement E. I think it's actually A and C that are correct.
upvoted 0 times
...
Edwin
3 months ago
I agree with Raina. When the server is stopped with pg_ctl -m smart, the running transaction is rolled back and clients receive a shutdown message.
upvoted 0 times
...
Raina
3 months ago
I think the correct statements are B and E.
upvoted 0 times
...
Shawnee
3 months ago
But what about statement C? Connections are terminated after running transactions finish, right?
upvoted 0 times
...
Lashon
3 months ago
I agree with statement E, connected clients receive a message about the server shutdown.
upvoted 0 times
...
Shawnee
4 months ago
I think statement A is correct because clients won't be able to make new connections.
upvoted 0 times
...

Save Cancel