X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B19DA529BC for ; Tue, 12 Jul 2005 16:17:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51194-10 for ; Tue, 12 Jul 2005 19:17:08 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 21EE352995 for ; Tue, 12 Jul 2005 16:17:06 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j6CJGxvD005140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Jul 2005 13:17:01 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j6CJGwEE086174; Tue, 12 Jul 2005 13:16:58 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j6CJGwUF086173; Tue, 12 Jul 2005 13:16:58 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 12 Jul 2005 13:16:58 -0600 From: Michael Fuhr To: Thanh Q Lam Cc: pgsql-admin@postgresql.org Subject: Re: How to list user accounts? Message-ID: <20050712191658.GA86144@winnie.fuhr.org> References: <42D4130F.4060009@alcatel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42D4130F.4060009@alcatel.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/75 X-Sequence-Number: 18131 On Tue, Jul 12, 2005 at 02:59:27PM -0400, Thanh Q Lam wrote: > > Is there a command/option to list all database user accounts in postgres? If you're using psql then see "Meta-Commands" in the psql documentation; otherwise see your client's documentation. You could also query the system catalogs directly. http://www.postgresql.org/docs/8.0/static/app-psql.html http://www.postgresql.org/docs/8.0/static/catalogs.html -- Michael Fuhr http://www.fuhr.org/~mfuhr/