X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D000C9FB1D4 for ; Tue, 1 Aug 2006 20:00:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 57413-03 for ; Tue, 1 Aug 2006 20:00:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id E44769FB36A for ; Tue, 1 Aug 2006 20:00:47 -0300 (ADT) Received: from alvh.no-ip.org (200-126-100-4.bk7-dsl.surnet.cl [200.126.100.4]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k71N0jV3026332; Tue, 1 Aug 2006 16:00:45 -0700 Received: by alvh.no-ip.org (Postfix, from userid 1000) id C6352C2F879; Tue, 1 Aug 2006 19:00:39 -0400 (CLT) Date: Tue, 1 Aug 2006 19:00:39 -0400 From: Alvaro Herrera To: Daniel Joo Cc: pgsql-sql@postgresql.org Subject: Re: viewing the description of tables from python DB-API Message-ID: <20060801230039.GA20401@alvh.no-ip.org> Mail-Followup-To: Daniel Joo , pgsql-sql@postgresql.org References: <20060801223740.4B60E9FB1D4@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060801223740.4B60E9FB1D4@postgresql.org> User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 01 Aug 2006 16:00:50 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.914 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/6 X-Sequence-Number: 25964 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