Re: viewing the description of tables from python DB-API

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Daniel Joo <djoo(at)vistagen-inc(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: viewing the description of tables from python DB-API
Date: 2006-08-01 23:00:39
Message-ID: 20060801230039.GA20401@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo De Leon 2006-08-01 23:14:03 Re: viewing the description of tables from python DB-API
Previous Message Daniel Joo 2006-08-01 22:30:48 viewing the description of tables from python DB-API