Hi Marko!

Marko Kreen [2005-12-12 12:03 +0200]:
> Why the pg_ctlcluster needs to be run as postgres, but others as root? 

It must be run as the cluster owner, which does not need to be
'postgres' (any user can have clusters).

>   # pg_ctlcluster 8.1 opt reload
>   Error: You must run this program as the cluster owner (postgres)
> 
> Ok, this is not a big problem but still annoying.  As they are 
> one 'family' of scripts, their use should be similar.

You can use the -s option to setuid to the cluster owner user. This
was actually intended to be a safety measure (i. e. make you aware of
what you are doing), but I agree that it is confusing.

I would either

 a) extend the error message to point to the -s option

or

 b) just do it and drop the -s option.

Probably b) is better.

What do you think?

Thanks,

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?

Attachment: signature.asc
Description: Digital signature

Reply via email to