Re: How can I retrieve attribute category with attribute Oid in Cfunction? - Mailing list pgsql-general

From Laurenz Albe
Subject Re: How can I retrieve attribute category with attribute Oid in Cfunction?
Date
Msg-id 1526285495.2675.10.camel@cybertec.at
Whole thread Raw
In response to How can I retrieve attribute category with attribute Oid in C function?  ("a" <372660931@qq.com>)
Responses Re: How can I retrieve attribute category with attribute Oid in Cfunction?  ("a" <372660931@qq.com>)
List 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 by date:

Previous
From: "a"
Date:
Subject: How can I retrieve attribute category with attribute Oid in C function?
Next
From: "a"
Date:
Subject: Re: How can I retrieve attribute category with attribute Oid in Cfunction?