Обсуждение: oid pseudoattribute in rules

Поиск
Список
Период
Сортировка

oid pseudoattribute in rules

От
"David J. Trombley"
Дата:

    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

От
Tom Lane
Дата:
"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