Re: Getting the results columns before execution

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: Getting the results columns before execution
Дата
Msg-id 4019275C.4070609@Yahoo.com
обсуждение исходный текст
Ответ на Re: Getting the results columns before execution  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Getting the results columns before execution  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Getting the results columns before execution  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
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.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Disaster!
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: returning PGresult as xml