pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: TJ O'Donnell <tjo@acm.org>
Cc: cbbrowne@acm.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Desc Commnad in pgsql?
Date: Mon, 21 Apr 2008 09:36:26 -0400
Message-ID: <20080421133626.GD6520@alvh.no-ip.org> (raw)
In-Reply-To: <480BDC4B.9010104@acm.org>
References: <20080420182009.56E5F8F0AE0@maia-1.hub.org>
	<480BDC4B.9010104@acm.org>

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



view thread (6+ messages)

Message-ID: <20080421133626.GD6520@alvh.no-ip.org>
Permalink:  ../20080421133626.GD6520@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20080421133626.GD6520@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvherre@commandprompt.com, tjo@acm.org, cbbrowne@acm.org
  Subject: Re: Desc Commnad in pgsql?
  In-Reply-To: <20080421133626.GD6520@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox