Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id ECE359FA3B1 for ; Fri, 27 Oct 2006 03:26:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 87040-03 for ; Fri, 27 Oct 2006 06:25:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web33305.mail.mud.yahoo.com (web33305.mail.mud.yahoo.com [68.142.206.120]) by postgresql.org (Postfix) with SMTP id 8B0109FA265 for ; Fri, 27 Oct 2006 03:25:57 -0300 (ADT) Received: (qmail 97958 invoked by uid 60001); 27 Oct 2006 06:25:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DsrWQ6XjTbyANcESWhuM+VdGyrqCw40dI6S0Vy+JLxrinmc4zvo1A73NvefhH/Hc7cC5VLtfzJPTNYJwGnq1cT1KJe/nBfH5DAn+HR9WJEiGyWJiU2AqjWeHXRf9oGp63TlvFA5z9RGnpEXM3kjHPNcirLV1Jg75/XTpV7oB5VY= ; Message-ID: <20061027062556.97956.qmail@web33305.mail.mud.yahoo.com> Received: from [220.225.70.2] by web33305.mail.mud.yahoo.com via HTTP; Thu, 26 Oct 2006 23:25:56 PDT Date: Thu, 26 Oct 2006 23:25:56 -0700 (PDT) From: Sandeep Khandelwal Subject: How to get table definition of a PostgreSQL table To: pgsql-interfaces@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.646 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS, FROM_HAS_ULINE_NUMS X-Spam-Level: *** X-Archive-Number: 200610/27 X-Sequence-Number: 6310 Hi.=0A=0AI would like to get field's name, datatype of each field, length o= f each field and precision of each field of a PostgreSQL table. Please let = me SQL query to get this information.=0A=0AThanks, =0ASandeep=0A=0A