Re: Triggers on columns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Triggers on columns
Date
Msg-id 8111.1251954296@sss.pgh.pa.us
Whole thread Raw
In response to Re: Triggers on columns  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: community decision-making & 8.5
Next
From: Tom Lane
Date:
Subject: Re: Triggers on columns