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 922B79FB1D4 for ; Tue, 1 Aug 2006 20:14:10 -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 57341-09 for ; Tue, 1 Aug 2006 20:14:07 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by postgresql.org (Postfix) with ESMTP id 2B47F9FB1C3 for ; Tue, 1 Aug 2006 20:14:06 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id m3so1544940ugc for ; Tue, 01 Aug 2006 16:14:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HD+9bR/Mp+zX4lIOQ3mR56SekeN+K8m07+8gREi6sEZqD3JKzYuWrkdE9a6qal1H+5bbRgvcPwTzzEPA66A6UTjWwNLdAuBkpAz8okWH2kEPQ7831V6n2TRvk+60kGjWze+WCO/1STD+XR1GeugTRGrCNVX8+iPxR7mN2OwgLTI= Received: by 10.67.93.6 with SMTP id v6mr282049ugl; Tue, 01 Aug 2006 16:14:03 -0700 (PDT) Received: by 10.66.234.13 with HTTP; Tue, 1 Aug 2006 16:14:03 -0700 (PDT) Message-ID: Date: Tue, 1 Aug 2006 17:14:03 -0600 From: "Rodrigo De Leon" To: pgsql-sql@postgresql.org Subject: Re: viewing the description of tables from python DB-API In-Reply-To: <20060801223740.4B60E9FB1D4@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060801223740.4B60E9FB1D4@postgresql.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.2 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/7 X-Sequence-Number: 25965 On 8/1/06, Daniel Joo 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 Regards, Rodrigo