X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D0827D1B501 for ; Wed, 15 Oct 2003 02:33:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 48870-01 for ; Tue, 14 Oct 2003 23:33:17 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 612CAD1B516 for ; Tue, 14 Oct 2003 23:33:12 -0300 (ADT) Received: (qmail 23169 invoked by uid 500); 15 Oct 2003 02:41:00 -0000 Date: Tue, 14 Oct 2003 21:41:00 -0500 From: Bruno Wolff III To: pgsql-admin@postgresql.org Subject: Re: working with users Message-ID: <20031015024100.GB22769@wolff.to> Mail-Followup-To: pgsql-admin@postgresql.org References: <20031015011716.GA8177@miltonstreet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031015011716.GA8177@miltonstreet.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/147 X-Sequence-Number: 10708 On Tue, Oct 14, 2003 at 21:17:16 -0400, Sam Carleton 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.