Itagaki Takahiro <itagaki.takah...@oss.ntt.co.jp> writes:
> But how? First, I tried to use existing dependency mechanism:

>     ObjectAddress referenced;
>     referenced.classId = AttributeRelationId;
>     referenced.objectId = {relid};
>     referenced.objectSubId = {attnum};

This is just wrong.  The correct representation of a column is
        classId = RelationRelationId
        objectId = relid
        objectSubId = attnum
The column is a sub-object of a pg_class item, not an object in
its own right.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to