Re: Different results in a loop with RECORD vs ROWTYPE...

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Different results in a loop with RECORD vs ROWTYPE...
Дата
Msg-id 200305230919.53799.josh@agliodbs.com
обсуждение исходный текст
Ответ на Different results in a loop with RECORD vs ROWTYPE...  (Sean Chittenden <sean@chittenden.org>)
Ответы Re: Different results in a loop with RECORD vs ROWTYPE...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom,

I believe that we should raise an exception if the SELECT statement does not
match the ROWTYPE, though of course we'd have to provide a
backward-compatible GUC in case anyone is counting on the current behavior.

Personally, since %ROWTYPE has no efficiency gain in PL/pgSQL over RECORD, I
seldom use it, though I use RECORD about 200 times per project.

If you're still interested, I will consult my PL/SQL bible this afternoon to
see what Oracle 8i does in this case.

--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Different results in a loop with RECORD vs ROWTYPE...
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: Different results in a loop with RECORD vs ROWTYPE...