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
16 days 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
17 days 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
...
Ruthann
24 days 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
...
Pedro
25 days 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
15 days 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
18 days ago
Yes, you're right. The running transaction is rolled back and connections are terminated after transactions finish.
upvoted 0 times
...
Alline
20 days ago
I think the correct answers are B and C.
upvoted 0 times
...
...
Shaun
2 months ago
I'm not sure about statement E. I think it's actually A and C that are correct.
upvoted 0 times
...
Edwin
2 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
2 months ago
I think the correct statements are B and E.
upvoted 0 times
...
Shawnee
2 months ago
But what about statement C? Connections are terminated after running transactions finish, right?
upvoted 0 times
...
Lashon
2 months ago
I agree with statement E, connected clients receive a message about the server shutdown.
upvoted 0 times
...
Shawnee
2 months ago
I think statement A is correct because clients won't be able to make new connections.
upvoted 0 times
...

Save Cancel