pgsql: Back-patch fix and test case for bug #7516.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Back-patch fix and test case for bug #7516.
Date: 2012-09-14 15:50:46
Message-ID: E1TCYAI-0000zv-Uu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Back-patch fix and test case for bug #7516.

Back-patch commits 9afc6481117d2dd936e752da0424a2b6b05f6459 and
b8fbbcf37f22c5e8361da939ad0fc4be18a34ca9. The first of these is really
a minor code cleanup to save a few cycles, but it turns out to provide
a workaround for the misoptimization problem described in bug #7516.
The second commit adds a regression test case.

Back-patch the fix to all active branches. The test case only works
as far back as 9.0, because it relies on plpgsql which isn't installed
by default before that. (I didn't have success modifying it into an
all-plperl form that still provoked a crash, though this may just reflect
my lack of Perl-fu.)

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1e234542805401277d33f8b3fa01b7a771bb98c0

Modified Files
--------------
src/pl/plperl/plperl.c | 29 ++++++++++-------------------
1 files changed, 10 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2012-09-14 16:02:30 Re: pgsql: Back-patch fix and test case for bug #7516.
Previous Message Tom Lane 2012-09-14 15:06:21 pgsql: Add a regression test case based on bug #7516.