Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id F06CF2E0048 for ; Mon, 21 Apr 2008 10:36:40 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 29357-01 for ; Mon, 21 Apr 2008 10:36:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by developer.postgresql.org (Postfix) with ESMTP id 3128B2E0044 for ; Mon, 21 Apr 2008 10:36:33 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-74-87.bk5-dsl.surnet.cl [200.126.74.87]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m3LDb8rG021566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Apr 2008 06:37:10 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4627047C59; Mon, 21 Apr 2008 09:36:26 -0400 (CLT) Date: Mon, 21 Apr 2008 09:36:26 -0400 From: Alvaro Herrera To: "TJ O'Donnell" Cc: cbbrowne@acm.org, pgsql-sql@postgresql.org Subject: Re: Desc Commnad in pgsql? Message-ID: <20080421133626.GD6520@alvh.no-ip.org> References: <20080420182009.56E5F8F0AE0@maia-1.hub.org> <480BDC4B.9010104@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <480BDC4B.9010104@acm.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Mon, 21 Apr 2008 06:37:11 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/122 X-Sequence-Number: 30661 TJ O'Donnell wrote: > I like the table and other info from psql > and find I sometimes need that info in my client programs. > Are there any SQL/plpgsql functions that are analogous > to the psql \dt, \ds, etc. commands? If you start psql with the -E option it will show you the queries it used to build the response tables. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support