Re: BUG #19911: Window aggregate over ROWS n FOLLOWING: "unexpected end of tuplestore" after spill

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-11-23 14:19:33
Message-ID: 819107.1795443573@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:
> Before you decide on committing, I would like a few more days to
> review the series further.

Sure, no urgency.

> PS: Longer term, trim is spread over physical fields (memtupdeleted,
> rowstrimmed, truncated) that differ by storage state, and once the
> store spills to a file, later trims record nothing, so nothing stops
> a seek back below them.

Good point. One thing I wondered about after sending v4 was whether
the definition of rowstrimmed should change to be the total number of
rows trimmed all the time (so that even before dumptuples, it would
include memtupdeleted). I think this would make some parts simpler
and others less so. But it feels like it might be conceptually
cleaner that way. If you want to investigate that please do.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Henson Choi 2026-11-23 13:22:45 Re: BUG #19911: Window aggregate over ROWS n FOLLOWING: "unexpected end of tuplestore" after spill