The bounded heap sorting status flag is set twice in sort_bounded_heap() and tuplesort_performsort(). This patch helps remove one of them.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных