Re: Accessing fields past CATALOG_VARLEN

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Re: Accessing fields past CATALOG_VARLEN
Дата
Msg-id 61D37998.4060704@anastigmatix.net
обсуждение исходный текст
Ответ на Accessing fields past CATALOG_VARLEN  (Ed Behn <ed@behn.us>)
Список pgsql-hackers
On 01/03/22 17:23, Ed Behn wrote:
> However, I get a compiler error when I try to access procStruct->proargmodes.
> I know that this is because this field is in the CATALOG_VARLEN block which
> makes it invisible to the compiler.
> 
> What is the proper way to get this field?

You can use SysCacheGetAttr with the attribute number. It knows all the
magic needed to find the right offset, possibly decompress, etc.

Regards,
-Chap



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: SKIP LOCKED assert triggered
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Accessing fields past CATALOG_VARLEN