X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 52880D6EA6 for ; Wed, 24 Aug 2005 06:17:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58252-05 for ; Wed, 24 Aug 2005 09:17:21 +0000 (GMT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 77438D6DCA for ; Wed, 24 Aug 2005 06:17:19 -0300 (ADT) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1E7rNi-00023z-81; Wed, 24 Aug 2005 09:17:14 +0000 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.50) id 1E7rNT-0001Hf-6i; Wed, 24 Aug 2005 10:16:59 +0100 Subject: Re: Reg:sql command From: Oliver Elphick Reply-To: olly@lfix.co.uk To: sandhya Cc: postgre , Sivakumar K In-Reply-To: <024c01c5a873$ec6da040$cd00000a@amiindiahjwbgh> References: <024c01c5a873$ec6da040$cd00000a@amiindiahjwbgh> Content-Type: text/plain Organization: LFIX Limited Date: Wed, 24 Aug 2005 10:16:59 +0100 Message-Id: <1124875019.3560.173.camel@linda> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-LFIX-MailScanner-SpamCheck: not spam, SpamAssassin (score=-5.899, required 5, autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -2.60) X-LFIX-MailScanner-From: olly@lfix.co.uk X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/293 X-Sequence-Number: 18612 On Wed, 2005-08-24 at 11:50 +0530, sandhya wrote: > Hi, > Is there any equivalent command for '\d tablename'. > Inorder to get the table structure is there any SQL query in postgres? > use psql -E to see the SQL commands that are used to implement \d and other such commands. -- Oliver Elphick olly@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA ======================================== Do you want to know God? http://www.lfix.co.uk/knowing_god.html