Re: help with PL/PgSQL bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, darcy(at)wavefire(dot)com
Subject: Re: help with PL/PgSQL bug
Date: 2003-01-11 01:28:22
Message-ID: 155.1042248502@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Neil Conway <neilc(at)samurai(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2003-01-11 01:41:31 Re: v7.3.1 psql against a v7.2.x database ...
Previous Message Tom Lane 2003-01-11 01:18:23 Re: 7.3 pg_dump with -Fc option crashes