Re: How can I retrieve attribute category with attribute Oid in Cfunction?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: How can I retrieve attribute category with attribute Oid in Cfunction?
Дата
Msg-id 1526285495.2675.10.camel@cybertec.at
обсуждение исходный текст
Ответ на How can I retrieve attribute category with attribute Oid in C function?  ("a" <372660931@qq.com>)
Ответы Re: How can I retrieve attribute category with attribute Oid in Cfunction?  ("a" <372660931@qq.com>)
Список pgsql-general
a wrote:
> Hi I am writing something that would need to identify the attribute category inside a C function,
> now I may need a way of fast access it, but the information is not stored in FormData_pg_attribute structure.

Are you talking about pg_type.typcategory?

That is accessible from FormData_pg_type.
You'd have to look up atttypid in the TYPEOID cache.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com


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

Предыдущее
От: "a"
Дата:
Сообщение: How can I retrieve attribute category with attribute Oid in C function?
Следующее
От: "a"
Дата:
Сообщение: Re: How can I retrieve attribute category with attribute Oid in Cfunction?