Via signal handling? Use the kill() function (or its pg equivalent) to send
the appropriate signal?
On 4/6/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Aleksis Petrov" <a(dot)aleksis(at)gmail(dot)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
>