Re: OID with %ROWTYPE in PLPGSQL

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: OID with %ROWTYPE in PLPGSQL
Дата
Msg-id 3D5C0C5D.1937BF32@nsd.ca
обсуждение исходный текст
Ответ на Seq scan  (Diogo Biazus <diogo@ikono.com.br>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: OID with %ROWTYPE in PLPGSQL
Следующее
От: Diogo Biazus
Дата:
Сообщение: Re: Seq scan