Re: 9.2RC1 wraps this Thursday ...
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>, Amit kapila <amit.kapila@huawei.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2012-08-26T20:31:24Z
Lists: pgsql-hackers
On 08/26/2012 03:15 PM, Tom Lane wrote: > BTW, one idea that occurs to me is to bypass the problem by skipping > the server's no-root-privileges check when the postmaster is given the > -C switch. (This shouldn't pose a security hazard, since reading the > config files is something a root-privileged caller could do anyway.) > I don't immediately see a non-ugly way to do that in the current server > code structure, but maybe somebody else will have an idea. > I had the same idea, and couldn't see a simple way to do it either. The trouble is that the check_root() call comes too early for us to do it cleanly. But I'll have another look. cheers andrew