Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 77D0B9FB612 for ; Tue, 27 Mar 2007 01:03:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 44254-07 for ; Tue, 27 Mar 2007 01:03:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id BEEA49FB553 for ; Tue, 27 Mar 2007 01:03:48 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id l2R43aVU052011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Mar 2007 21:03:39 -0700 (MST) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id l2R43a1O008198; Mon, 26 Mar 2007 22:03:36 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id l2R43Z5W008197; Mon, 26 Mar 2007 22:03:35 -0600 (MDT) (envelope-from mfuhr) Date: Mon, 26 Mar 2007 22:03:35 -0600 From: Michael Fuhr To: Carol Walter Cc: pgsql-admin@postgresql.org Subject: Re: data from system tables. Message-ID: <20070327040335.GA96360@winnie.fuhr.org> References: <27404C5B-E60A-4C4A-9C4F-0F353AA3FF72@indiana.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27404C5B-E60A-4C4A-9C4F-0F353AA3FF72@indiana.edu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/204 X-Sequence-Number: 25028 On Mon, Mar 26, 2007 at 04:45:01PM -0400, Carol Walter wrote: > We recently began giving our users a ten connection limit. The are > some accounts that have no limit. Some of these should have no limit > because they're system accounts, but others are just users that were > created before we started the limit. Is there a psql command that I > can run with a "where" clause that will let me get a list of everyone > who has no connection limit? Look at the SQL that psql executes for its \d commands: \set ECHO_HIDDEN \du See also the "System Catalogs" chapter in the documentation for the version you're running. Here's the link for 8.2: http://www.postgresql.org/docs/8.2/interactive/catalogs.html -- Michael Fuhr