Re: No user being created during initdb for OS X - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: No user being created during initdb for OS X
Date
Msg-id 42DF9ACA.4010804@dunslane.net
Whole thread Raw
In response to Re: No user being created during initdb for OS X  ("Andrew Dunstan" <andrew@dunslane.net>)
List pgsql-hackers

Andrew Dunstan wrote:

>>    
>>
>
>2. initdb will only create one user, as specified by -U and defaulting to
>the name of the user running initdb. Thus it will only ever create a user
>called postgres if '-U postgres' is specified, or
>if -U is not used and the user running initdb is called postgres.
>  
>

grammar fixed above so it makes sense



4. if you want to see what user(s) it knows about, shut down the 
postmaster and run postgres in standalone mode like this:
echo 'select usename from pg_user' | /pathto/postgres -D /pathto/data 
template1


cheers

andrew


pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: No user being created during initdb for OS X
Next
From: "Brusser, Michael"
Date:
Subject: Re: recover corrupted pg_controldata from WAL