fix for PL/PgSQL segfault - Mailing list pgsql-patches

From Neil Conway
Subject fix for PL/PgSQL segfault
Date
Msg-id 1042484628.386.18.camel@tokyo
Whole thread Raw
Responses Re: fix for PL/PgSQL segfault
List pgsql-patches
This patch fixes a segfault in the support for set-returning functions
PL/PgSQL that occurs when an undefined RECORD variable is returned with
RETURN NEXT. The fix is the one suggested by Tom on -hackers: a row of
NULL values is returned.

I've added a regression test for this behavior.

After the appropriate review, IMHO this patch should be applied to both
HEAD and REL_7_3_STABLE branches.

Cheers,

Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC



Attachment

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: targetlist functions part 1 (was [HACKERS] targetlist
Next
From: Joe Conway
Date:
Subject: Re: targetlist functions part 1 (was [HACKERS] targetlist