assertion failure in WITHIN GROUP patch

Started by Jeff Davisover 12 years ago2 messagesbugs
Jump to latest
#1Jeff Davis
pgsql@j-davis.com

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

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jeff Davis (#1)
Re: assertion failure in WITHIN GROUP patch

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

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs