pgsql: Fix an Assert that turns out to be reachable after all. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix an Assert that turns out to be reachable after all.
Date
Msg-id E1SHH0b-0006e2-60@gemulon.postgresql.org
Whole thread Raw
List 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_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/be9aad6b9e451a2767c645353c7f4c9722a9d1df

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix an Assert that turns out to be reachable after all.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix an Assert that turns out to be reachable after all.