Itagaki Takahiro <itagaki.takahiro@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 isclassId = RelationRelationIdobjectId = relidobjectSubId =
attnum
The column is a sub-object of a pg_class item, not an object in
its own right.
regards, tom lane