Re: accessing user table structures from SQL - Mailing list pgsql-general

From Scott Marlowe
Subject Re: accessing user table structures from SQL
Date
Msg-id dcc563d10901162340g5a757474yb1754159d5e341f2@mail.gmail.com
Whole thread Raw
In response to accessing user table structures from SQL  (Vincent Predoehl <vpredoehl@phoenixwebgroup.com>)
List pgsql-general
On Fri, Jan 16, 2009 at 9:32 PM, Vincent Predoehl
<vpredoehl@phoenixwebgroup.com> wrote:
> Does postgresql have a system table that has the table structure of user
> tables, like systables and sysobjects in MS SQL Server?

There's the pg_* views and tables that have all of that, and to see
how they work, you can run psql -E and then any \ command you issue
you'll get to see the SQL for.

OR you can look at the information_schema which is a SQL standard but
I think there are some pg relationships it can't show.

pgsql-general by date:

Previous
From: Faheem Mitha
Date:
Subject: array_agg for 8.3
Next
From: "Scott Marlowe"
Date:
Subject: Re: Trigger to clone across databases?