Re: What query on system tables retrieves table or queries definitoin - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: What query on system tables retrieves table or queries definitoin
Date
Msg-id 20060304214748.GG29180@svana.org
Whole thread Raw
In response to What query on system tables retrieves table or queries definitoin  (lists@adontendev.net)
List pgsql-general
On Sat, Mar 04, 2006 at 03:13:18AM +0000, lists@adontendev.net wrote:
>
>
> What is the query for retrieving a tables and a views definition from the system
> tables (in 7.4).
>
> I am trying to find my way in the system tables and I am finding very confusing,
> especially way in the way the tables are linked.

If you start psql with the -E switch or use "\set ECHO_HIDDEN = 'on'"
then the \d command print the queries used to generate the output. This
should give you a good start. Alternativly, use the information_schema.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: "Javier Velez Perez"
Date:
Subject:
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Questions about privileges