Re: Table and Field Schemas - Mailing list pgsql-general

From Richard Huxton
Subject Re: Table and Field Schemas
Date
Msg-id 41AAEFFE.8050508@archonet.com
Whole thread Raw
In response to Table and Field Schemas  (Adam Ernst <adam1234@athenet.net>)
List pgsql-general
Adam Ernst wrote:
> How can I get the table schema for a database or the field schema for a
> table? I'm connected remotely via a socket, so I can't just dump it an
> inspect the result.
>
> Even if I could just verify the existence of a table/field, that would
> work.

If you start psql with the -E flag then \d etc will show the queries
they send.

You might also want to consider looking at the information_schema schema
which provides a standardised view of database structure.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Nageshwar Rao
Date:
Subject: tool for postgresql
Next
From: Richard Huxton
Date:
Subject: Re: Triggers