Re: [HACKERS] It's possible to get pg_class oid from GETSTRUC macro?

2010-06-12 Thread Mark Kirkwood
On 13/06/10 15:28, Mohammad Heykal Abdillah wrote: After i read PostgreSQL documentation, i found that pg_attribute contain "attrelid" that reference to pg_class oid. But after i look to "/src/include/catalog/pg_class.h" there is no member named "oid". This what i trying to acomplish using "heap

[HACKERS] It's possible to get pg_class oid from GETSTRUC macro?

2010-06-12 Thread Mohammad Heykal Abdillah
After i read PostgreSQL documentation, i found that pg_attribute contain "attrelid" that reference to pg_class oid. But after i look to "/src/include/catalog/pg_class.h" there is no member named "oid". This what i trying to acomplish using "heap_getnext" function: if (((Form_pg_class) GETSTRUCT(h