"Andrew Dunstan" <[EMAIL PROTECTED]> writes: > 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. It should do the same as plpgsql: throw an error about "set-returning function called in a context that cannot accept a set", or however that was phrased. I'll put in a fix. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org