Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E3C20477407 for ; Thu, 23 Jan 2003 19:44:34 -0500 (EST) Received: from wombat.san-francisco.ca.us (wombat.san-francisco.ca.us [66.92.2.169]) by postgresql.org (Postfix) with SMTP id 577774776A6 for ; Thu, 23 Jan 2003 17:43:39 -0500 (EST) Received: (qmail 7835 invoked by uid 1000); 23 Jan 2003 22:43:41 -0000 Date: Thu, 23 Jan 2003 14:43:41 -0800 From: Keith Keller To: pgsql-sql@postgresql.org Subject: Re: SQL to list databases? Message-ID: <20030123224341.GA7721@wombat.san-francisco.ca.us> References: <81132473206F3A46A72BD6116E1A06AE1B14CC@black.aprote.com> <26610.1043341252@sss.pgh.pa.us> <3E303AF2.10603@cms-stl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E303AF2.10603@cms-stl.com> User-Agent: Mutt/1.4i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/375 X-Sequence-Number: 11240 On Thu, Jan 23, 2003 at 12:56:50PM -0600, Ben Siders wrote: > > Is there a query that will return all the databases available, similar > to what psql -l does? Any time you wish to know what psql is doing with ''meta'' commands (like the \ commands), use the -E switch, which will display the queries it's sending to the backend. man psql for more details. --keith -- kkeller@speakeasy.net public key: http://wombat.san-francisco.ca.us/kkeller/kkeller.asc alt.os.linux.slackware FAQ: http://wombat.san-francisco.ca.us/cgi-bin/fom