Re: Desc Commnad in pgsql?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "TJ O'Donnell" <tjo(at)acm(dot)org>
Cc: cbbrowne(at)acm(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: Desc Commnad in pgsql?
Date: 2008-04-21 13:36:26
Message-ID: 20080421133626.GD6520@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Kellerer 2008-04-21 13:48:23 Having a mental block with (self) outer joins
Previous Message TJ O'Donnell 2008-04-21 00:14:03 Re: Desc Commnad in pgsql?