From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | Decibel! <decibel(at)decibel(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Raphaël Jacquot <sxpert(at)sxpert(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: wishlist for 8.4 |
Date: | 2008-02-15 17:44:05 |
Message-ID: | 20080215174405.GV4103@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Feb 15, 2008 at 10:06:49AM +0000, Richard Huxton wrote:
> Decibel! wrote:
>> On Feb 14, 2008, at 10:06 AM, Tom Lane wrote:
>>> =?UTF-8?B?UmFwaGHDq2wgSmFjcXVvdA==?= <sxpert(at)sxpert(dot)org> writes:
>>>> so, I propose the use of
>>>> NEW[variable_containing_the_column_name]
>>>> (which can obviously be extended to any tuples) to allow such
>>>> access.
>>>
>>>> what do you experts think ?
>>>
>>> Zero chance. plplgsql is a strongly typed language, and a
>>> construct like that couldn't have any known-in-advance data type.
>>
>> Would it be reasonable to teach EXECUTE about NEW and OLD? That
>> should allow the OP to do what he's looking for...
>
> You could have a function get_attribute_as_text(NEW, 'id') or even
> get_attribute_quoted(NEW, 'id')
>
> It would be nice to have a more dynamic language built-in. I'm not
> aware of any BSD-licensed dynamic languages though.
Perl is BSD-compatible.
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2008-02-15 19:19:58 | NetBSD/dtime_t |
Previous Message | Tom Lane | 2008-02-15 17:38:41 | Last call for objections: SELECT alias without AS for IDENTs only? |