Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 876C34759A1 for ; Thu, 22 Aug 2002 05:02:44 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id E0549475956 for ; Thu, 22 Aug 2002 05:02:43 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 9B8AD3818E7; Thu, 22 Aug 2002 05:02:43 -0400 (EDT) From: "Philip Rudling" X-Newsgroups: comp.databases.postgresql.admin Subject: programatically obtaining table layout Date: Thu, 22 Aug 2002 10:00:46 +0100 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: abuse@clara.net (please include full headers) Message-Id: <1030006940.22212.0@iris.uk.clara.net> To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/331 X-Sequence-Number: 5445 Is there a way of getting the output of a \d tablename from within a program (like describe in mysql) Although this works fine from the postgres command line, from within a program I get: ODBC Error Code = 00000 () Error while executing the query (non-fatal); ERROR: parser: parse error at or near "\" SQL = "\d orders" Data Source = "MESSINA" The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (4:1) to (7:39) in the template file /usr/local/apache/htdocs/stephen/messina/TESTER.cfm. I am using coldfusion and unix ODBC driver. SR