Re: OID with %ROWTYPE in PLPGSQL

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: OID with %ROWTYPE in PLPGSQL
Date: 2002-08-15 21:27:02
Message-ID: 3D5C1CA6.9749C777@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I claimed victory to quickly.

PLPGSQL did compile, run and did not complain about OID but it was
always set to 0.

JLL

Jean-Luc Lachance wrote:
>
> Well, I found a solution for now.
>
> I use RECORD in stead of ROWTYPE.
> RECORD does hold OID if it exists.
>
> JLL
>
> P.S. I am still interested about updating a record in place.
>
> Jean-Luc Lachance wrote:
> >
> > Hello all,
> >
> > Is there a way to have the OID included with %ROWTYPE?
> > If not, can the record pointed to by a ROWTYPE record in a loop be
> > updated in place?
> > If not, can the record pointed by a cursor be updated in place?
> >
> > If not can we add one of those to the list of "nice to have" for the
> > next version?
> >
> > While I am at it, why not allow assignment of row variable from another
> > row variable?
> >
> > Thanks
> >
> > JLL
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Bacon 2002-08-15 22:04:35 Memory problems executing SQL statement
Previous Message Diogo Biazus 2002-08-15 20:58:40 Re: Seq scan