Laszlo Nagy <gand...@shopzeus.com> writes:
> maybe is it possible to change the source code, and disable the "is 
> postmaster alive" check for testing?

Rather than disabling it, it'd probably be more convenient to make
any getppid value except 1 (the init process) be treated as "it's
alive".  Otherwise you'll have trouble with the collector not stopping
when you want it to.  Look into src/backend/storage/ipc/pmsignal.c:

-               return (getppid() == PostmasterPid);
+               return (getppid() != 1);

(Obviously this is a hack, but it should work on any Unixish system)

                        regards, tom lane

-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Reply via email to