Re: working with users

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: working with users
Date: 2003-10-15 02:41:00
Message-ID: 20031015024100.GB22769@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Oct 14, 2003 at 21:17:16 -0400,
Sam Carleton <postgres(at)linux-info(dot)net> wrote:
>
> But how do I see what users exist for the database? Because I was
One way is to use the \du command in psql.

> the user postgres when I created the database, does that mean there
> was a postgres user added during creation? If not, what user am I

Yes.

> when I run psql as postgres? If I am postgres, what is the password
> to the database and how do I rest it?

By default the access mode is trust, so there is no password needed.

> Now I am not a DBA, but I have been around enough databases to know
> that most of them have their own system tables. Does postgres have
> system tables? If so, where do I find a list of them and their
> usage?

Yes. They are described in the documentation under the headings
internals -> system catalogs.

You also might want to use \? to see the \ commands available in psql,
since there are a number of lookups using \ commands that might be
of interest to you.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-10-15 04:11:59 Re: DELETE error - Memory exhausted in AllocSetAlloc
Previous Message Sam Carleton 2003-10-15 01:17:16 working with users