"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