pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philip Rudling <psr@clara.net>
To: pgsql-admin@postgresql.org
Subject: programatically obtaining table layout
Date: Thu, 22 Aug 2002 10:00:46 +0100
Message-ID: <1030006940.22212.0@iris.uk.clara.net> (raw)

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






view thread (2+ messages)  latest in thread

Message-ID: <1030006940.22212.0@iris.uk.clara.net>
Permalink:  ../1030006940.22212.0@iris.uk.clara.net/
Also on:    postgresql.org/message-id/1030006940.22212.0@iris.uk.clara.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: psr@clara.net
  Subject: Re: programatically obtaining table layout
  In-Reply-To: <1030006940.22212.0@iris.uk.clara.net>
  References: <1030006940.22212.0@iris.uk.clara.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox