Re: help with PL/PgSQL bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: help with PL/PgSQL bug
Date
Msg-id 155.1042248502@sss.pgh.pa.us
Whole thread Raw
In response to help with PL/PgSQL bug  (Neil Conway <neilc@samurai.com>)
Responses Re: help with PL/PgSQL bug  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> Someone contacted me in IRC about a bug in PL/PgSQL. I've confirmed that
> the example SQL they sent me causes a segfault on my machine (CVS HEAD),
> but I've so far not had a lot of success tracking down the exact cause
> of the problem.

The core dump appears to occur when the SELECT INTO fails to retrieve
a row, leaving "finalrec" undefined.  Clearly, RETURN NEXT with an
undefined record variable shouldn't dump core, but what should it do?
Raise an error, or perhaps be a no-op?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.3 pg_dump with -Fc option crashes
Next
From: "Marc G. Fournier"
Date:
Subject: Re: v7.3.1 psql against a v7.2.x database ...