Re: pg view of table columns needed for scripting - Mailing list pgsql-general

From bricklen
Subject Re: pg view of table columns needed for scripting
Date
Msg-id AANLkTikF=r_MmU5aG-xxtMb+OegJJL0b69o5x5gCLQhx@mail.gmail.com
Whole thread Raw
In response to pg view of table columns needed for scripting  ("Gauthier, Dave" <dave.gauthier@intel.com>)
List pgsql-general
On Fri, Oct 22, 2010 at 9:14 AM, Gauthier, Dave <dave.gauthier@intel.com> wrote:
> Is there something like a pg_xxx view that I can use to get the column names
> and data types of a table, similar to what I see with \d ?  I need to run
> this is a script, so \d isn't viable.  I did a \df and looked around, but
> nothing popped out.

psql -E -d dbname

Will give you the internal queries that are executed by things like \d etc

pgsql-general by date:

Previous
From: Peter Bex
Date:
Subject: Re: Advice needed on application/database authentication/authorization/auditing model
Next
From: Chris Barnes
Date:
Subject: Re: pg view of table columns needed for scripting