X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6A97FD1B4E5 for ; Fri, 17 Oct 2003 09:25:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00490-10 for ; Fri, 17 Oct 2003 06:24:54 -0300 (ADT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 7050AD1B4EF for ; Fri, 17 Oct 2003 06:24:47 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1AAQqj-0004Re-0Y; Fri, 17 Oct 2003 10:24:46 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id B4876176D8; Fri, 17 Oct 2003 10:24:44 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 1D30B17670; Fri, 17 Oct 2003 10:24:44 +0100 (BST) From: Richard Huxton To: "Kumar" , "Jordan S. Jones" Subject: Re: Object description at Client Window Date: Fri, 17 Oct 2003 10:24:17 +0100 User-Agent: KMail/1.5 Cc: References: <005401c39474$db9cf640$7502a8c0@hdsc.com> <3F8F8A37.1010208@racistnames.com> <007b01c3948a$de7800b0$7502a8c0@hdsc.com> In-Reply-To: <007b01c3948a$de7800b0$7502a8c0@hdsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310171024.17494.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/205 X-Sequence-Number: 15605 On Friday 17 October 2003 09:44, Kumar wrote: > Hi , > > Jordan, thanks for ur reply. But I am not asking that. > > I want to get all the column names of any table at the PgAdmin3 SQL Window. > To make it more clear, actually i wanted to send the table name as the > input parameter for a function and expecting the column names, data types, > etc as the output. > > Is there any command or any system table from that I could query the column > names of a table (other than \d table name at the command prompt). Try what the man said. Start psql with -E and issue \d mytable and it will show you the SQL it uses to produce the table's details. -- Richard Huxton Archonet Ltd