Re: Meta data information on tables

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"jkells" <jtkells(at)verizon(dot)net>
Subject: Re: Meta data information on tables
Date: 2012-01-20 21:34:46
Message-ID: 4F1989960200002500044A5F@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

jkells <jtkells(at)verizon(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2012-01-20 21:42:09 Re: Best practise for upgrade of 24GB+ database
Previous Message francis picabia 2012-01-20 20:38:34 Re: Best practise for upgrade of 24GB+ database