Prev: pg_regress --use-existing does not appear in--help
Next: It's possible to get pg_class oid from GETSTRUC macro?
From: Mohammad Heykal Abdillah on 12 Jun 2010 23:28 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(ht_1)->oid) == ((Form_pg_attribute) GETSTRUCT(ht_2)->attrelid) { //do something } But its always failed in compile time since pg_class doesnt have "oid" member. And it seem "t_tableOid" was not pg_class oid since when i compare "t_tableOid" and "(Form_pg_attribute) GETSTRUCT(ht_2)->attrelid" nothing match. My question is, how to get "oid" from pg_class? or is there any other solution you can suggest? Thank you. -- Mohammad Heykal Abdillah <heykal.abdillah(a)gmail.com> -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |