wishlist for 8.4

From: Raphaël Jacquot <sxpert(at)sxpert(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: wishlist for 8.4
Date: 2008-02-14 06:51:31
Message-ID: 47B3E4F3.1040609@sxpert.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hi there,

I recently found myself trying to build a trigger to modify some fields
in a good dozen similarly structured tables in which the similar columns
had different names.
in fact, I got stuck in pl/pgsql with the fact that there's no way to
access the NEW tuple in an indirect way, having the name of the column
in some variable. (I found that it could be done in plperl, but that
left me with a taste of un-completeness...)

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 ?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Naz Gassiep 2008-02-14 06:52:06 Timezone view
Previous Message Hiroshi Saito 2008-02-14 06:21:23 Re: NLS on MSVC strikes back!