Search Postgresql Archives

Re: What query on system tables retrieves table or queries definitoin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 04, 2006 at 03:13:18AM +0000, lists@xxxxxxxxxxxxxx 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@xxxxxxxxx>   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: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux