Re: plperl returning setof foo[] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: plperl returning setof foo[]
Date
Msg-id 8069.1252776659@sss.pgh.pa.us
Whole thread Raw
In response to plperl returning setof foo[]  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: plperl returning setof foo[]
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> The fix is fairly small (see attached) although I need to check with 
> some perlguts guru to see if I need to decrement a refcounter here or there.

The array_ret variable seems a bit unnecessary, and declared well
outside the appropriate scope if it is necessary.

> Nobody has complained about it over the years, so I wonder if it should 
> be backpatched. It wouldn't change any working behaviour, just remove 
> the non-working property of some documented behaviour.

AFAICT it just fails, so backpatching seems like a bug fix not a
behavioral change.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: plperl returning setof foo[]
Next
From: Mark Mielke
Date:
Subject: Re: [COMMITTERS] Can not create more than 32766 databases in ufs file system.