]> granicus.if.org Git - postgresql/commit
Fix an Assert that turns out to be reachable after all.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Apr 2012 15:59:17 +0000 (11:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Apr 2012 15:59:17 +0000 (11:59 -0400)
commit454c7fb3a372ef8970a3896dcec94efb6db41382
tree87a86a88f3c40f150542826326d78fdc24b28e56
parent2f8659b06140debf5cfba46b844513cfe5149be7
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