pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: L J Bayuk <ljb220@mindspring.com>
Cc: Bshrivastav@esri.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Is there a way to describe precision and scale for columns in a s
Date: Sun, 06 Jun 2004 23:34:19 -0400
Message-ID: <23545.1086579259@sss.pgh.pa.us> (raw)
In-Reply-To: <200406070044.i570i4LN000718@mindspring.com>
References: <200406070044.i570i4LN000718@mindspring.com>

L J Bayuk <ljb220@mindspring.com> writes:
> Brijesh Shrivastav wrote:
>> It seems I can't get the select column information untill I perform an
>> PQexecPrepared().
>> Is there any way around it?

> I don't think so. The protocol supports it ("Describe" message on a named
> prepared statement, without Bind or Execute), and I assume the backend
> would play along, but I don't think libpq has any way to let you do it
> in the current release.

libpq doesn't currently have any API to let you get at
Describe-Statement.  This is obviously something to fix.  There are
actually quite a few aspects of the v3 backend protocol that libpq
has no API for as yet.  I would like to see someone think about prepared
statements and parameters in general, and put forward a coherent
proposed API for the whole mess.  But short of that, we could accept
a solution for this particular issue ...

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <23545.1086579259@sss.pgh.pa.us>
Permalink:  ../23545.1086579259@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23545.1086579259@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ljb220@mindspring.com, Bshrivastav@esri.com
  Subject: Re: Is there a way to describe precision and scale for columns in a s
  In-Reply-To: <23545.1086579259@sss.pgh.pa.us>

* 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