aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-02-15 10:17:58 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-02-15 10:17:58 -0500
commit80dc07aa361b9b0028e49bbdf7a947775211b812 (patch)
tree5cb0fbf0f45b6b9cbb4e2e8e48b91fb1ae4052fa /doc/src
parent18cacf89b9fe5523941b57fbd01d408585e70737 (diff)
downloadpostgresql-80dc07aa361b9b0028e49bbdf7a947775211b812.tar.gz
postgresql-80dc07aa361b9b0028e49bbdf7a947775211b812.zip
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 there's no reason for extra complexity. Also, annotate the test case added by 82e0e2930 to explain why it manages to hit the corner case fixed in that commit, and add an EXPLAIN to verify that it's creating an incremental-sort plan. Back-patch to v13, like the previous patch. James Coleman and Tom Lane Discussion: https://postgr.es/m/16846-ae49f51ac379a4cb@postgresql.org
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions