Re: pgsql user change to postgres

From: Joe <dev(at)freedomcircle(dot)net>
To: Vivek Khera <vivek(at)khera(dot)org>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgsql user change to postgres
Date: 2006-07-03 16:28:58
Message-ID: 44A945CA.8080007@freedomcircle.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vivek Khera wrote:
> if you want to use the freebsd ports system (which is advisable) don't
> fight against it. use the recommended/defaults where you can.

I wasn't trying to fight it. It's just that the port disagrees with the
PG documentation and apparently most other ports. The maintainer said
it was for backward compatibility but it's apparently only a FreeBSD
"phenomenom" :-)

> What I do, though, is set the PostgreSQL super user to be 'postgres' and
> let the unix system user remain 'pgsql' since the latter doesn't matter
> one bit. This is trivially done by altering the ~pgsql/.profile file
> and adding PGUSER=postgres and exporting that variable. Do this *before*
> you init the DB, then run initdb with this comand:
>
> su - pgsql -c 'initdb -U postgres'
>
> From now on, any upgrades you do will no longer be so painful.

That sounds reasonable. I'll give it a try. Thanks.

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Hoksza 2006-07-03 16:32:13 Re: query execution time
Previous Message Scott Ribe 2006-07-03 16:09:01 Re: Null and Void() - Or, Abandon All Hope Ye Who allow