Re: proposal: plpgsql - iteration over fields of rec or row variable

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: proposal: plpgsql - iteration over fields of rec or row variable
Дата
Msg-id AANLkTinyNv=j_L6-Wu0FtvzKgOktNp5uVkdY7g+N3N4v@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: plpgsql - iteration over fields of rec or row variable  (Dmitriy Igrishin <dmitigr@gmail.com>)
Ответы Re: proposal: plpgsql - iteration over fields of rec or row variable  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-hackers
On Mon, Nov 8, 2010 at 3:02 PM, Dmitriy Igrishin <dmitigr@gmail.com> wrote:
> Hey Pavel, Tom, Merlin,
>
> As a user, I would like to work with records by using simple API:
>
>   -- Returns a number of key/values pairs of record.
>   nKeys_ integer := nRecordKeys(NEW);
>
>   -- Returns an i-th key.
>   key_i text := recordKey(NEW, i);
>
>   -- Returns an i-th value.
>   value1_ text := recordValueByIndex(NEW, i);
>
>   -- Returns an value by named key.
>   value2_ text := recordValueByName(NEW, "id");
>
> and so on...

This doesn't really solve the problem -- you need some participation
from plpgsql because function behavior post-plan time can not be
ambiguous.

merlin


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: UNION ALL has higher cost than inheritance
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: proposal: plpgsql - iteration over fields of rec or row variable