"Alex Hunsaker" <[EMAIL PROTECTED]> writes: > Hrm works for me if I take out the elog from sort()
Even more interesting, this variant *doesn't* work: regression=# create or replace function trustedsort() returns int as $$ my @arr = qw(5 4 3 2 1); my @sorted = sort { "$a" <=> "$b" } @arr; elog(NOTICE, join(' ', @sorted)); return 1; $$ language 'plperl'; CREATE FUNCTION regression=# select trustedsort(); NOTICE: 5 4 3 2 1 trustedsort ------------- 1 (1 row) Seems like it's the interpolation into a string that is failing. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs