Find datatype of a column during the backend flow

Поиск
Список
Период
Сортировка
От Ishaya Bhatt
Тема Find datatype of a column during the backend flow
Дата
Msg-id CA+E1M333Gs0GW0qRNALciDu3F2rsFa47yJ2oBv9Du0ZHhjCZXA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Find datatype of a column during the backend flow  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-sql
Hi,
     In the sorting code, I need to determine the datatype of my sort keys and call some code conditionally based on the datatype. Is there any way to determine the datatype of a column from the backend PostGreSQL code. I am aware of the methods PSQLexec() and PQftype() but am unable to figure out how to call these functions from the backend. Any help on this or any other method to determine datatype would be very much appreciated.

Thanks,
Ishaya Bhatt.

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

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: Query specific table using relative position in search path
Следующее
От: Michael Schmidt
Дата:
Сообщение: Re: How to script inserts where id is needed as fk