Re: pgsql initial superuser - Mailing list pgsql-admin

From V i s h a l Kashyap @ [Sai Hertz And Control Systems]
Subject Re: pgsql initial superuser
Date
Msg-id 40BF17CF.50405@sancharnet.in
Whole thread Raw
In response to pgsql initial superuser  (Pedro Almeida <niker@netvisao.pt>)
List pgsql-admin
Dear Pedro ,

> Hello. this is my "first" time using pgsql, and I seem to be running
> to a bit of a corner here :-)
>
> I've understood how to add a superuser/database-user/user but I have
> no user to begin with.
>
> ~# createuser superuser
> Shall the new user be allowed to create databases? (y/n) y
> Shall the new user be allowed to create more new users? (y/n) y
> psql: FATAL:  user "root" does not exist
> createuser: creation of user "superuser" failed
>

If you have compiled PostgreSQL then the user login  used for initdb is
the default user
else
this was from  rpm then postgres  is the super user
you may login as

psql -U postgres template1

--
Regards,
Vishal Kashyap
Director / Lead Software Developer,
Sai Hertz And Control Systems Pvt Ltd,
http://saihertz.rediffblogs.com
Jabber IM: vishalkashyap[ a t ]jabber.org
ICQ :      264360076
Yahoo  IM: mailforvishal[ a t ]yahoo.com
-----------------------------------------------
You yourself, as much as anybody in the entire
universe, deserve your love and affection.
- Buddha
---------------
pgsql=# select marital_status from vishals_life;

marital_status
------------------
Single not looking

1 Row(s) affected



pgsql-admin by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: PQgetSSL relocation errror
Next
From: "darshan patel"
Date:
Subject: replication/mirror