Re: Alternate data location, again

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Alternate data location, again
Date: 2002-02-19 19:01:11
Message-ID: 5941.1014145271@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rich Shepard <rshepard(at)appl-ecosys(dot)com> writes:
> only thing that occurs to me is this: the postmaster is started by root, not
> by user postgres or user rshepard. Only root has permission to run
> '/etc/rc.d/init.d/postgresql restart'. Could this have any bearing on the
> results?

Hm. I assume that init script does something like
su postgres -c 'postmaster ...'

Check the man page for "su". Usually there is some option needed to
make "su" pick up the login environment of the target user. On HPUX
you'd do
su - postgres postmaster ...
but I'm too lazy to go check it on other Unixen...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2002-02-19 19:01:15 Re: Report generation
Previous Message Rich Shepard 2002-02-19 18:59:05 Re: Report generation