Re: proposal: auxiliary functions for record type

From: Florian Pflug <fgp(at)phlo(dot)org>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: auxiliary functions for record type
Date: 2010-12-11 14:17:44
Message-ID: 159C2B94-C953-4F06-AB62-CE2DC293EFCF@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Dec11, 2010, at 06:20 , Pavel Stehule wrote:
> I wrote a few functions for record type - record_expand,
> record_get_fields, record_get_field, record_set_fields.

Just FYI, I've created something similar a while ago. The code can be found at
https://github.com/fgp/pg_record_inspect

The main difference seems to be that my code allows you to retrieve fields from a record without casting it to text. As a consequence, however, it lacks the set-returning functions that your's provides. It also doesn't provide a way to modify fields.

Still, maybe we could join efforts here? I certain would *love* to see something like this either as a contrib module or in core.

best regards,
Florian Pflug

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-12-11 14:28:22 Re: PS display and standby query conflict
Previous Message Magnus Hagander 2010-12-11 13:27:37 Re: Final(?) proposal for wal_sync_method changes