From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postmaster failing to start on reboot |
Date: | 2005-11-10 14:37:38 |
Message-ID: | 8679.1131633458@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Richard Huxton <dev(at)archonet(dot)com> writes:
> In another email you mention that this script sometimes doesn't stop PG.
> This is the relevant block of code, and you can see that the line
> starting "su -l postgres" has been commented out and replaced.
> That's strange, because my copy of pg_ctl refuses to run as root.
We added the no-root check to pg_ctl in 8.0beta4, so AFAICS this script
should *never* work to stop the postmaster if you are indeed dealing
with an 8.0.0 release. The script change must have been made by someone
who was dealing with a pre-8.0 version (and even then, not one of the
later subreleases, because every branch since Oct 2004 has had this
check).
At least, it'd never work if executed by root. It might work if
executed by postgres --- dunno whether any of the other stuff is
root-only.
In any case, the short answer is to get rid of this script and get
one that works properly ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2005-11-10 15:35:46 | Re: Best way to use indexes for partial match at |
Previous Message | Helge Elvik | 2005-11-10 14:33:13 | Compiling libpq on Windows |