| From: | Scott Marlowe <smarlowe(at)g2switchworks(dot)com> |
|---|---|
| To: | Rodrigo De Leon <rdeleonp(at)gmail(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: viewing the description of tables from python DB-API |
| Date: | 2006-08-02 16:22:54 |
| Message-ID: | 1154535774.7882.42.camel@state.g2switchworks.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Tue, 2006-08-01 at 18:14, Rodrigo De Leon wrote:
> On 8/1/06, Daniel Joo <djoo(at)vistagen-inc(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-08-02 16:36:59 | Re: alter column type from boolean to char with default |
| Previous Message | Rod Taylor | 2006-08-02 13:56:23 | Re: alter column type from boolean to char with default |