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

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

From
Tom Lane
Date:
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
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8555586707dbf5f731f015691a87cc0ab53efcca

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