From: Alvaro Herrera <alvherre@commandprompt.com>
To: Daniel Joo <djoo@vistagen-inc.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: viewing the description of tables from python DB-API
Date: Tue, 1 Aug 2006 19:00:39 -0400
Message-ID: <20060801230039.GA20401@alvh.no-ip.org> (raw)
In-Reply-To: <20060801223740.4B60E9FB1D4@postgresql.org>
References: <20060801223740.4B60E9FB1D4@postgresql.org>
Daniel Joo wrote:
> 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.
Try \d under psql -E sometime. It'll give you the query it uses.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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: alvherre@commandprompt.com, djoo@vistagen-inc.com
Subject: Re: viewing the description of tables from python DB-API
In-Reply-To: <20060801230039.GA20401@alvh.no-ip.org>
* 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