]> 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:58:24 +0000 (11:58 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Apr 2012 15:58:56 +0000 (11:58 -0400)
commitbe9aad6b9e451a2767c645353c7f4c9722a9d1df
tree142222592fc6d807a73ce877248a195e223c0e1a
parent785d4998b69a538023b82bfa95db4af5f7d07b06
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