Thread: oid pseudoattribute in rules

oid pseudoattribute in rules

From
"David J. Trombley"
Date:

    It seems that the oid attribute is not available from the NEW object
during an ON INSERT TO rule.
    Can this be confirmed or denied?  Is there any way to get the oid
that the new row will (eventually?) have?


    -David J. Tombley
    <dtrom@bumba.net>


Re: oid pseudoattribute in rules

From
Tom Lane
Date:
"David J. Trombley" <dtrom@bumba.net> writes:
> Is there any way to get the oid
> that the new row will (eventually?) have?

No, because it hasn't got it yet.

I think you could get the OID in an AFTER trigger, if that helps any.

            regards, tom lane