proposal: row_to_array function - Mailing list pgsql-hackers

From Pavel Stehule
Subject proposal: row_to_array function
Date
Msg-id CAFj8pRDCUgKQ57viHtcciybjyzqJn9=oA+0-reFHYF4LJSxjJg@mail.gmail.com
Whole thread Raw
Responses Re: proposal: row_to_array function
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: proposal: searching in array function - array_position
Next
From: Heikki Linnakangas
Date:
Subject: Re: More Norwegian trouble