Re: arrays as pl/perl input arguments [PATCH] - Mailing list pgsql-hackers

From Robert Haas
Subject Re: arrays as pl/perl input arguments [PATCH]
Date
Msg-id AANLkTi=PViNJXkOAOwvXh0omj7zV7GiZ8NWTzQzwYCLX@mail.gmail.com
Whole thread Raw
In response to Re: arrays as pl/perl input arguments [PATCH]  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: arrays as pl/perl input arguments [PATCH]
List 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


pgsql-hackers by date:

Previous
From: Andreas Karlsson
Date:
Subject: Re: Bug in pg_describe_object, patch v2
Next
From: "David E. Wheeler"
Date:
Subject: Re: arrays as pl/perl input arguments [PATCH]