Re: ipcclean in 8.1 broken? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ipcclean in 8.1 broken?
Date
Msg-id 10913.1141227965@sss.pgh.pa.us
Whole thread Raw
In response to Re: ipcclean in 8.1 broken?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> No-one has a comment on this?

ipcclean has never been much more than beta-quality software; it doesn't
pretend to be very portable.

Having said that, I think the anti-root check is bogus.  It was probably
added in a fit of "let's make sure nobody tries to admin PG as root",
but I don't see why that applies to ipcclean.  The only thing that
really matters is whether the subsequent id/whoami lookup comes up with
the proper user id.  I'd be inclined to do the id lookup and then bomb
out if it came up with 0 (just to ensure that no one accidentally blows
away really-important shared memory segments).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Initdb on Windows 2003
Next
From: Simon Riggs
Date:
Subject: statement_cost_limit