pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <desoi@pgedit.com>
To: Stef <svb@ucs.co.za>
Cc: pgsql-ADMIN@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Postgres schema comparison.
Date: Mon, 7 Mar 2005 10:32:07 -0500
Message-ID: <1098CCF1-8F1E-11D9-A12B-000A95B03262@pgedit.com> (raw)
In-Reply-To: <20050307170914.51376f05@svb.ucs.co.za>
References: <20050307113312.2200b65c@svb.ucs.co.za>
	<F393FF18-8F05-11D9-A12B-000A95B03262@pgedit.com>
	<20050307170914.51376f05@svb.ucs.co.za>


On Mar 7, 2005, at 10:09 AM, Stef wrote:

> Is it possible to somehow pass the output of : "\d [TABLE NAME]"
> to this function? If not, what would return me consistent text
> that will describe the columns, indexes and primary keys of a table?
>

I'm not sure you can use \d directly, but if you startup psql with the 
-E option it will show you all the SQL it is using to run the \d 
command. It should be fairly easy to get the strings you need from the 
results of running a similar query. The psql source is a good place to 
look also.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL




view thread (19+ messages)  latest in thread

Message-ID: <1098CCF1-8F1E-11D9-A12B-000A95B03262@pgedit.com>
Permalink:  ../1098CCF1-8F1E-11D9-A12B-000A95B03262@pgedit.com/
Also on:    postgresql.org/message-id/1098CCF1-8F1E-11D9-A12B-000A95B03262@pgedit.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: desoi@pgedit.com, svb@ucs.co.za, pgsql-ADMIN@postgresql.org
  Subject: Re: Postgres schema comparison.
  In-Reply-To: <1098CCF1-8F1E-11D9-A12B-000A95B03262@pgedit.com>
  References: <20050307113312.2200b65c@svb.ucs.co.za> <F393FF18-8F05-11D9-A12B-000A95B03262@pgedit.com> <20050307170914.51376f05@svb.ucs.co.za> <1098CCF1-8F1E-11D9-A12B-000A95B03262@pgedit.com>

* 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