Re: Getting the results columns before execution

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Getting the results columns before execution
Дата
Msg-id 200401301044.i0UAiUc05314@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Getting the results columns before execution  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
Jan Wieck wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >> Tom Lane wrote:
> >>>> Are those exposed through the libpq interface?
> >>> 
> >>> No, because libpq doesn't really have any concept of prepared statements.
> >>> It would probably make sense to add some more API to libpq to allow
> >>> creation and interrogation of prepared statements, but no one's got
> >>> around to that yet.
> > 
> >> Uh, if libpq doesn't know about it, how is that information accessed?
> > 
> > That's exactly the problem...
> 
> Currently the only way to do that would be to have a user defined 
> function that calls SPI_prepare() with the query string and returns the 
> desired information to the client.

It was my understanding that the new protocol passes this information to
the cilent, right?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: msg translation into sk_SK, Docs: SGML -> XML
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Getting the results columns before execution