Re: [HACKERS] Arrays of Records in PL/Perl

2011-07-12 Thread David E. Wheeler
On Jul 12, 2011, at 12:19 PM, Alex Hunsaker wrote: > All Arrays in 9.0 and lower are strings, regardless of if they are > comprised of composite types. Its not so much a bug as a limitation. > Alexey Klyukin fixed this for 9.1 :-) Oh? dump --

Re: [HACKERS] Arrays of Records in PL/Perl

2011-07-12 Thread Alex Hunsaker
On Tue, Jul 12, 2011 at 12:45, David E. Wheeler wrote: > Hackers, > That is, if a record is passed to a PL/Perl function, it's correctly > converted into a hash. If, however, an array of records are passed, the > record are stringified, rather than turned into hashes. This seems > inconsistent

[HACKERS] Arrays of Records in PL/Perl

2011-07-12 Thread David E. Wheeler
Hackers, Given this script: BEGIN; CREATE TYPE foo AS ( this int, that int ); CREATE OR REPLACE FUNCTION dump(foo[]) returns text language plperlu AS $$ use Data::Dumper; Dumper shift; $$; CREATE OR REPLACE FUNCTION dump(foo) returns text language plperlu AS $$