Re: Getting the results columns before execution - Mailing list pgsql-hackers

From Shachar Shemesh
Subject Re: Getting the results columns before execution
Date
Msg-id 400C0138.4050608@shemesh.biz
Whole thread Raw
In response to Re: Getting the results columns before execution  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Getting the results columns before execution  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

>Shachar Shemesh <psql@shemesh.biz> writes:
>  
>
>>... This is a problem, as merely preparing a command is 
>>not enough to get the returned rows information.
>>    
>>
>
>Sure it is, if you are using the V3 protocol (new in 7.4).
>See the Describe message types.
>
>            regards, tom lane
>  
>
Are those exposed through the libpq interface?
If not, is there a way to use the libpq interface for most operations, 
and only for the rest to use whatever it is you are suggesting I use 
(couldn't locate it in the docs, yet)

Funnily enough, mandating protocol version 3 is not my problem at the 
moment. I may have to do so for a host of other reasons as well. I 
guess, if you want to use an earlier version of the database, you will 
have to make do with the ole db to ODBC interface.
           Shachar

-- 
Shachar Shemesh
Lingnu Open Systems Consulting
http://www.lingnu.com/




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Getting the results columns before execution
Next
From: Andrew Dunstan
Date:
Subject: logging enhancement recap