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

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: a <372660931(at)qq(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How can I retrieve attribute category with attribute Oid in C function?
Date: 2018-05-14 08:11:35
Message-ID: 1526285495.2675.10.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message a 2018-05-14 08:18:05 Re: How can I retrieve attribute category with attribute Oid in Cfunction?
Previous Message a 2018-05-14 07:30:18 How can I retrieve attribute category with attribute Oid in C function?