Re: CREATE ROLE - Mailing list pgsql-novice

From Richard Broersma Jr
Subject Re: CREATE ROLE
Date
Msg-id 864147.3824.qm@web31803.mail.mud.yahoo.com
Whole thread Raw
In response to CREATE ROLE  (Russell Denney <r_denney@verizon.net>)
Responses Re: CREATE ROLE  (nhrcommu@rochester.rr.com)
List pgsql-novice
> Logged in as postgres, I created a role as Superuser. psql returned
> CREATE ROLE.
> When I enter \du it lists the new role, however, createdb and
> createrole are listed as "no". I thought superusers bypassed all
> permissions?

the real superuser user account is postgres.  If you want to create a role that will have more
than the default priveledges you must granted:
http://www.postgresql.org/docs/8.2/interactive/sql-grant.html

> When I \q, psql returns "could not save history to file "/Users/
> postgres/.psql_history": Invalid argument". Of what significance is
> this at this point and how do I correct it?

I expect that mean that your postgres unix user account doesn't have a home directory to save
these files.  At home directory is created by default on my system either.

I tried this with and
> without  the -U flag. Any clue as to what is going on?

if you do not specify an actual postgresql db account it tries to use your unix user account
instead.  If your unix user name doesn't exist in postgresql you get this error.
try "-U <one of you postgresql usernames>"

The following link should give 80% of everything you want to know.
http://www.postgresql.org/docs/8.2/interactive/tutorial.html

Regards,

Richard Broersma Jr.


pgsql-novice by date:

Previous
From: Russell Denney
Date:
Subject: CREATE ROLE
Next
From: nhrcommu@rochester.rr.com
Date:
Subject: Re: CREATE ROLE