Re: Accessing fields past CATALOG_VARLEN - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: Accessing fields past CATALOG_VARLEN
Date
Msg-id 61D37998.4060704@anastigmatix.net
Whole thread Raw
In response to Accessing fields past CATALOG_VARLEN  (Ed Behn <ed@behn.us>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: SKIP LOCKED assert triggered
Next
From: Tom Lane
Date:
Subject: Re: Accessing fields past CATALOG_VARLEN