Skip site navigation (1) Skip section navigation (2)

pgsql: Fix longstanding error in contrib/intarray's int[] & int[]opera

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix longstanding error in contrib/intarray's int[] & int[]opera
Date: 2012-02-17 01:01:05
Message-ID: E1RyCC9-0006Ml-8m@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Fix longstanding error in contrib/intarray's int[] & int[] operator.

The array intersection code would give wrong results if the first entry of
the correct output array would be "1".  (I think only this value could be
at risk, since the previous word would always be a lower-bound entry with
that fixed value.)

Problem spotted by Julien Rouhaud, initial patch by Guillaume Lelarge,
cosmetic improvements by me.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/86328cbc348a6c2614bd1fddbf21380a92417e04

Modified Files
--------------
contrib/intarray/_int_tool.c       |   13 +++++++------
contrib/intarray/expected/_int.out |    6 ++++++
contrib/intarray/sql/_int.sql      |    1 +
3 files changed, 14 insertions(+), 6 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2012-02-18 00:44:38
Subject: pgsql: Sync regex code with Tcl 8.5.11.
Previous:From: Tom LaneDate: 2012-02-16 22:34:12
Subject: pgsql: Improve statistics estimation to make some use of DISTINCT insu

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group