pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: pgsql-admin@postgresql.org
Subject: Re: working with users
Date: Tue, 14 Oct 2003 21:41:00 -0500
Message-ID: <20031015024100.GB22769@wolff.to> (raw)
In-Reply-To: <20031015011716.GA8177@miltonstreet.com>
References: <20031015011716.GA8177@miltonstreet.com>

On Tue, Oct 14, 2003 at 21:17:16 -0400,
  Sam Carleton <postgres@linux-info.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.



view thread (5+ messages)  latest in thread

Message-ID: <20031015024100.GB22769@wolff.to>
Permalink:  ../20031015024100.GB22769@wolff.to/
Also on:    postgresql.org/message-id/20031015024100.GB22769@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to
  Subject: Re: working with users
  In-Reply-To: <20031015024100.GB22769@wolff.to>
  References: <20031015011716.GA8177@miltonstreet.com> <20031015024100.GB22769@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox