| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | assam258(at)gmail(dot)com |
| Cc: | tharakan(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19911: Window aggregate over ROWS n FOLLOWING: "unexpected end of tuplestore" after spill |
| Date: | 2026-12-01 00:59:37 |
| Message-ID: | 1500710.1796086777@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Henson Choi <assam258(at)gmail(dot)com> writes:
> Here is v7. As you suggested, it now holds onto the tuple kept by a
> trim separately, which replaces v6-0004, and v6-0008 is dropped.
I pushed this with mostly-minor editorialization, after squashing
into one patch. A couple of things worth noting:
* In 0007 you'd removed the optimization commented
* In mergejoin's current usage, it's demonstrable that there will always
* be exactly one non-removed tuple; so optimize that case.
I did not go back and check the provenance of that comment, but
I did stick in some quick logging about how many tuples are being
kept in each call, and ran the core regression tests. I saw
something over 100K out of 127K calls were keeping one tuple.
So I think that optimization is still quite worthwhile, though
I weakened the comment to not try to explain exactly where that
usage is coming from.
* I took out a couple of test cases that were reporting "unexpected
end of tuple stream". I think that's probably exposing a bug in
portalcmds.c, which maybe we ought to do something about, but in
the meantime people will complain if the regression tests are
throwing any XX000 errors.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | surya poondla | 2026-12-01 01:00:27 | Re: BUG #19897: Recovery fails after "LOG: consistent recovery state reached" |
| Previous Message | shihao zhong | 2026-12-01 00:42:47 | Re: information_schema.applicable_roles reports a role with no usable membership option |