Re: BUG #16846: "retrieved too many tuples in a bounded sort"

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: contact@yorhel.nl
Cc: pgsql-bugs@lists.postgresql.org, Tomas Vondra <tomas.vondra@enterprisedb.com>
Date: 2021-01-31T16:35:28Z
Lists: pgsql-bugs
... btw, I did confirm that

set enable_incremental_sort = 0;

makes the error go away.  So that might do as a temporary workaround
until we fix it.

			regards, tom lane



Commits

  1. Simplify loop logic in nodeIncrementalSort.c.

  2. Fix YA incremental sort bug.