Re: How can I retrieve attribute category with attribute Oid inCfunction?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: How can I retrieve attribute category with attribute Oid inCfunction?
Дата
Msg-id 1526287889.2675.14.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: How can I retrieve attribute category with attribute Oid in Cfunction?  ("a" <372660931@qq.com>)
Список pgsql-general
a wrote:

> could you provide some more detail information??
> 
> What function should I use to get FormData_pg_type structure??
> 
> BTW, I searched another function called "lookup_type_cache", which will return a pointer of structure of
"TypeCacheEntry".
> 
> The structure contains "TypeCacheEntry.typtype" that may also help to
identify the type.
> 
> But I'm concerning about possible memory leak and allocation stuff. Is it safe to just declare a pointer and call
thisfunction??
 

In "logicalrep_write_typ" in src/backend/replication/logical/proto.c
you can find an example how to get the pg_type values from the OID.

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


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

Предыдущее
От: "a"
Дата:
Сообщение: Re: How can I retrieve attribute category with attribute Oid in Cfunction?
Следующее
От: Yashwanth Govinda Setty
Дата:
Сообщение: Recommended way to copy database files on Windows OS (to perform filesystem level backup)