On Wed, Sep 28, 2011 at 11:51 AM, Kohei KaiGai <kai...@kaigai.gr.jp> wrote: > I rebased the patches towards the latest git master, so I believe these > are available to apply.
Reviewing away... I don't see why we need one struct called ObjectProperty and another called CatalogProperty. Just fold CatalogProperty into ObjectProperty and make it one big flat structure. The get_object_property_waddawadda functions appear to be designed under the assumption that each object type will be in the ObjectProperty structure at the offset corresponding to (int) objtype. Are these functions going to get called from any place that's performance-critical enough to justify that optimization? I'd rather just have these functions use linear search, so that if someone adds a new OBJECT_* constant and doesn't add it to the array it doesn't immediately break everything. get_object_namespace() looks like it ought to live in objectaddress.c, not dropcmds.c. check_object_validation() doesn't seem like a very good description of what that code actually does -- and that code looks like it's copy-and-pasted from elsewhere. Can we avoid that? get_relation_address() is surely a copy of some other bit of code; how can we avoid duplication? Setting status to "Waiting on Author". -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers