Re: Column info without executing query

Поиск
Список
Период
Сортировка
От Jacob Coby
Тема Re: Column info without executing query
Дата
Msg-id 44C0D052.2090405@listingbook.com
обсуждение исходный текст
Ответ на Re: Column info without executing query  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Ответы Re: Column info without executing query  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Список pgsql-general
Volkan YAZICI wrote:
> On Jul 20 08:21, Dan Strömberg wrote:
>> I would like to know if it is possible to find out the datatypes in the
>> resultset of a query or a set returning
>> function without actually executing them ?
>
> As Tom mentioned, there's support for this feature in the protocol
> level, but I don't know any API supports this yet. However, here's a
> patch that adds Describe functionality for Prepared Statements and
> Cursors to libpq:
> http://archives.postgresql.org/pgsql-hackers/2006-06/msg01281.php

PHP supports it with the pg_field_type() function.


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

Предыдущее
От: Claire McLister
Дата:
Сообщение: Re: Create index hanging
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: Column info without executing query