Fix an Assert that turns out to be reachable after all.
authorTom Lane <[email protected]>
Mon, 9 Apr 2012 15:58:24 +0000 (11:58 -0400)
committerTom Lane <[email protected]>
Mon, 9 Apr 2012 15:59:11 +0000 (11:59 -0400)
commit8555586707dbf5f731f015691a87cc0ab53efcca
treecc7a0814f9aba13d9b18feaae53d11208ebb0120
parentcd8b1c6d48d664fe2e5575f40707ed247cee4aa0
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.
src/backend/utils/adt/selfuncs.c