Re: CREATE ROLE

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: CREATE ROLE
Дата
Msg-id 864147.3824.qm@web31803.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на CREATE ROLE  (Russell Denney <r_denney@verizon.net>)
Ответы Re: CREATE ROLE  (nhrcommu@rochester.rr.com)
Список 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 по дате отправления:

Предыдущее
От: Russell Denney
Дата:
Сообщение: CREATE ROLE
Следующее
От: nhrcommu@rochester.rr.com
Дата:
Сообщение: Re: CREATE ROLE