Re: viewing the description of tables from python DB-API - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: viewing the description of tables from python DB-API
Date
Msg-id 1154535774.7882.42.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: viewing the description of tables from python DB-API  ("Rodrigo De Leon" <rdeleonp@gmail.com>)
List pgsql-sql
On Tue, 2006-08-01 at 18:14, Rodrigo De Leon wrote:
> On 8/1/06, Daniel Joo <djoo@vistagen-inc.com> wrote:
> > Hi all,
> >
> >
> >
> > Is there a way to view the list of all tables from python (or any other
> > languages for that matter) DB-API?  What I'm looking for is a command
> > similar to the meta-command '\d' that works with the psql client.
> >
> >
> >
> > Thanks very much!
> >
> >
> >
> > Dan
> 
> There's also the INFORMATION_SCHEMA:
> 
> http://www.postgresql.org/docs/8.1/static/information-schema.html

Quick note.  The INFORMATION_SCHEMA should stay pretty static from one
pgsql version to the next, while the queries that psql -E shows will
likely change from one version to another.


pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: alter column type from boolean to char with default
Next
From: Tom Lane
Date:
Subject: Re: alter column type from boolean to char with default