TODO item: Allow the server to be stopped/restarted via an SQL API

Started by Aleksis Petrovabout 19 years ago3 messageshackers
Jump to latest
#1Aleksis Petrov
a.aleksis@gmail.com

Hi all,

Would it be acceptable to invoke pg_ctl in the API functions to stop and
restart the server?

thanks

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Aleksis Petrov (#1)
Re: TODO item: Allow the server to be stopped/restarted via an SQL API

"Aleksis Petrov" <a.aleksis@gmail.com> writes:

Would it be acceptable to invoke pg_ctl in the API functions to stop and
restart the server?

No. Not everyone uses pg_ctl for that.

regards, tom lane

#3Aleksis Petrov
a.aleksis@gmail.com
In reply to: Tom Lane (#2)
Re: TODO item: Allow the server to be stopped/restarted via an SQL API

Via signal handling? Use the kill() function (or its pg equivalent) to send
the appropriate signal?

Show quoted text

On 4/6/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:

"Aleksis Petrov" <a.aleksis@gmail.com> writes:

Would it be acceptable to invoke pg_ctl in the API functions to stop and
restart the server?

No. Not everyone uses pg_ctl for that.

regards, tom lane