pgsql: Simplify loop logic in nodeIncrementalSort.c.

2021-02-15 Thread Tom Lane
Simplify loop logic in nodeIncrementalSort.c. The inner loop in switchToPresortedPrefixMode() can be implemented as a conventional integer-counter for() loop, removing a couple of redundant boolean state variables. The old logic here was a remnant of earlier development, but as things now stand t

pgsql: Simplify loop logic in nodeIncrementalSort.c.

2021-02-15 Thread Tom Lane
Simplify loop logic in nodeIncrementalSort.c. The inner loop in switchToPresortedPrefixMode() can be implemented as a conventional integer-counter for() loop, removing a couple of redundant boolean state variables. The old logic here was a remnant of earlier development, but as things now stand t