pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Rodrigo De Leon <rdeleonp@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: viewing the description of tables from python DB-API
Date: Wed, 02 Aug 2006 11:22:54 -0500
Message-ID: <1154535774.7882.42.camel@state.g2switchworks.com> (raw)
In-Reply-To: <a55915760608011614t485b6e49qaaecb89e8ff567b3@mail.gmail.com>
References: <20060801223740.4B60E9FB1D4@postgresql.org>
	<a55915760608011614t485b6e49qaaecb89e8ff567b3@mail.gmail.com>

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.



view thread (5+ messages)  latest in thread

Message-ID: <1154535774.7882.42.camel@state.g2switchworks.com>
Permalink:  ../1154535774.7882.42.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1154535774.7882.42.camel@state.g2switchworks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: smarlowe@g2switchworks.com, rdeleonp@gmail.com
  Subject: Re: viewing the description of tables from python DB-API
  In-Reply-To: <1154535774.7882.42.camel@state.g2switchworks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox