proposal: row_to_array function

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема proposal: row_to_array function
Дата
Msg-id CAFj8pRDCUgKQ57viHtcciybjyzqJn9=oA+0-reFHYF4LJSxjJg@mail.gmail.com
обсуждение исходный текст
Ответы Re: proposal: row_to_array function  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
Hi

I am returning back to processing records in plpgsql.

I am thinking so it can be simply processed with transformations to array.

Now we have similar functions - hstore(row), row_to_json, ... but using of these functions can be a useless step. Any row variable can be transformed to 2D text array.

There two possible transformations:

row_to_array --> [[key1, value1],[key2, value2], ...]
row_to_row_array --> [(key1, value1), (key2, value2), ... ]

Both transformations can be simply implemented.

Comments, notices?

Regards

Pavel

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: proposal: searching in array function - array_position
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: More Norwegian trouble