pgsql: Fix an Assert that turns out to be reachable after all.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix an Assert that turns out to be reachable after all.
Date: 2012-04-09 16:00:01
Message-ID: E1SHH0b-0006dz-55@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix an Assert that turns out to be reachable after all.

estimate_num_groups() gets unhappy with
create table empty();
select * from empty except select * from empty e2;
I can't see any actual use-case for such a query (and the table is illegal
per SQL spec), but it seems like a good idea that it not cause an assert
failure.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0e20abdb47e3499353ac4fd1b2d21e82ec6b1461

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2012-04-09 18:12:40 pgsql: Remove documentation mention of pglesslog, which was added in 20
Previous Message Tom Lane 2012-04-09 15:42:04 pgsql: Don't bother copying empty support arrays in a zero-column Merge