another plperl bug - Mailing list pgsql-hackers

From Andrew Dunstan
Subject another plperl bug
Date
Msg-id 1692.24.211.141.25.1101127066.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: New compile warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: another plperl bug  (Michael Fuhr <mike@fuhr.org>)
Re: another plperl bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: another plperl bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I discovered a further plperl bug last night. If foo() is a SRF and
therefore returns an arrayref, calling select foo() rather than select *
from foo() causes a segfault because this line passes NULL as the argument:
   tupdesc = CreateTupleDescCopy(rsinfo->expectedDesc);

I am not sure I even know what the behaviour should be, and my available
time to work on a fix is severely contrained ATM.

cheers

andrew




pgsql-hackers by date:

Previous
From: Matt
Date:
Subject: Re: patch: plpgsql - access records with rec.(expr)
Next
From: Thomas Hallgren
Date:
Subject: Re: Preventing some SQL commands