Skip site navigation (1) Skip section navigation (2)

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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Alexey Klyukin <alexk(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: arrays as pl/perl input arguments [PATCH]
Date: 2011-01-11 23:44:53
Message-ID: 4D2CEB75.8010207@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers

On 01/11/2011 06:07 PM, David E. Wheeler wrote:
>
>> To maintain
>> compatibility with existing pl/perl code a new variable,
>> plperl.convert_array_arguments (better name?), is introduced. Its default
>> value is false, when set to true it triggers the new behavior, i.e.
> Have you considered instead passing an array-based object with is string overloading designed to return the pg array string format? That would make for nice, transparent compatibility without the need for a GUC.
>
> Not my idea, BTW, but suggested by Tim Bunce.
>
>

I think there's at least a danger of breaking legacy code doing that. 
Say you have some code that does a ref test on the argument, for 
example. The behavior would now be changed.

cheers

andrew



In response to

Responses

pgsql-hackers by date

Next:From: Andreas KarlssonDate: 2011-01-11 23:52:20
Subject: Re: Bug in pg_describe_object
Previous:From: Kevin GrittnerDate: 2011-01-11 23:27:40
Subject: SSI patch version 10

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group