Thread: assertion failure in WITHIN GROUP patch
create table big(a int); insert into big select generate_series(10000000,1,-1); vacuum big; vacuum big; select percentile_cont(0.5) within group (order by a) from big; TRAP: FailedAssertion("!(pointer != ((void*)0))", File: "mcxt.c", Line: 699) LOG: server process (PID 18750) was terminated by signal 6: Aborted DETAIL: Failed process was running: select percentile_cont(0.5) within group (order by a) from big; Regards, Jeff Davis
Jeff Davis <pgsql@j-davis.com> writes: > TRAP: FailedAssertion("!(pointer != ((void*)0))", File: "mcxt.c", Line: > 699) > LOG: server process (PID 18750) was terminated by signal 6: Aborted > DETAIL: Failed process was running: select percentile_cont(0.5) within > group (order by a) from big; Argh. I'd meant to go back and test that code path in tuplesort_skiptuples(), but forgot to. Fixed, thanks. regards, tom lane