Re: arrays as pl/perl input arguments [PATCH]

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Alexey Klyukin <alexk@commandprompt.com>, Alvaro Herrera <alvherre@commandprompt.com>, Alex Hunsaker <badalex@gmail.com>, "David E. Wheeler" <david@kineticode.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-01-12T23:29:28Z
Lists: pgsql-hackers
On Wed, Jan 12, 2011 at 4:45 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>> I thought the idea of overloading the string representation to look like
>> the old style was a cute solution.  If we don't have anyone at hand who
>> knows how to do that, let's find someone who does.  Not break our users'
>> code because we're too lazy to find out how to do it properly.
>
> What I was casting a bit of doubt on upthread was whether or not this would
> work without possibly breaking some code, in possibly silent or obscure
> ways. If I'm wrong about that, then by all means let's use some perl Magic
> (that's a technical term) to achieve this. IIRC Alex recently posted some
> code that might be instructive about this.

I agree with your gut feeling.  I suspect the Perl magic solution will
make no one very happy.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company