Re: Is there a "Just Kidding" command? - Mailing list pgsql-admin

From David Johnston
Subject Re: Is there a "Just Kidding" command?
Date
Msg-id 1379022234233-5770642.post@n5.nabble.com
Whole thread Raw
In response to Is there a "Just Kidding" command?  ("Burgholzer, Robert (DEQ)" <Robert.Burgholzer@deq.virginia.gov>)
List pgsql-admin
Burgholzer, Robert (DEQ) wrote
> So, I just sent a pg_ctl stop command to the wrong db node, and I'm
> wondering if there is a way to take that back?  I ask since I have a long
> running process connecting to it, and I don't want to wait around for it
> to finish up so that the db can stop, then I can start it up again.  Also,
> other requests are now being denied...
>
> Here's hoping.  Maybe the "doh!!" command?

At the admin level, not that I can think of.  In SQL you have the "ROLLBACK"
command....you are using transactions right?

I could see the value in the normal shutdown sequence only blocking incoming
requests until it is ready for the full shutdown sequence and only then
beginning other shutdown actions.  That would provide a window in this
situation to tell the server to "pg_ctl abort_shutdown" and go back to
allowing new connections.  The cost-benefit of such a feature is fairly
small though.

Having done this your decision is to either kill the long-running stuff and
get the reboot over with or let it run and effectively make the server
unavailable for a while but you end up not having to re-do whatever work the
long-running transaction was in the middle of.

David J.




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Is-there-a-Just-Kidding-command-tp5770628p5770642.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


pgsql-admin by date:

Previous
From: "Burgholzer, Robert (DEQ)"
Date:
Subject: Is there a "Just Kidding" command?
Next
From: Martin French
Date:
Subject: Re: Is there a "Just Kidding" command?