Re: Triggers on columns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Triggers on columns
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Triggers on columns  (Itagaki Takahiro <[email protected]>)
List pgsql-hackers
Itagaki Takahiro <[email protected]> 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