Jean-Luc Lachance <jllachan@nsd.ca> writes:
> Is there a way to have the OID included with %ROWTYPE?
No, because there's no guarantee that a rowtype value actually came
directly from a database row. For instance, it could be formed as
the return value of a function.
regards, tom lane