pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: jkells <jtkells@verizon.net>
Subject: Re: Meta data information on tables
Date: Fri, 20 Jan 2012 15:34:46 -0600
Message-ID: <4F1989960200002500044A5F@gw.wicourts.gov> (raw)
In-Reply-To: <02kSq.257143$1x3.130247@en-nntp-16.dc1.easynews.com>
References: <02kSq.257143$1x3.130247@en-nntp-16.dc1.easynews.com>

jkells <jtkells@verizon.net> wrote:
 
> I am running PostgreSQL 8.4.7 (64 bit) on a Ubuntu 10.10 64 bit
> system.  I am trying to generate a report listing all our tables,
> their column attributes (type, constraints etc.) and comments (if
> any) for each of them.  I'm having a hard time finding this in the
> catalog areas. I can find some of this information but cant seem
> to tie them all together. Can anyone help with advise or queries?
> Thanks
 
Try running psql with the -E option, and run \d on a few tables. 
psql will show all the queries used to generate its reports, which
should arm you with enough information to write what you want.
 
-Kevin



view thread (2+ messages)

Message-ID: <4F1989960200002500044A5F@gw.wicourts.gov>
Permalink:  ../4F1989960200002500044A5F@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F1989960200002500044A5F@gw.wicourts.gov

 · 

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-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, jtkells@verizon.net
  Subject: Re: Meta data information on tables
  In-Reply-To: <4F1989960200002500044A5F@gw.wicourts.gov>
  References: <02kSq.257143$1x3.130247@en-nntp-16.dc1.easynews.com> <4F1989960200002500044A5F@gw.wicourts.gov>

* 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