Remove open-coded binary heap in pg_dump_sort.c.
authorNathan Bossart <nathan@postgresql.org>
Wed, 20 Sep 2023 02:18:34 +0000 (19:18 -0700)
committerNathan Bossart <nathan@postgresql.org>
Wed, 20 Sep 2023 02:18:34 +0000 (19:18 -0700)
commit559bc1732180d9d3f87ad77e029c823389d8d91b
tree341472b67c6a9799baf0a3797fb8e06ce3d8cbb6
parentc868cbfef70a22bc02093cfd5e21d5ffd3ca5dd0
Remove open-coded binary heap in pg_dump_sort.c.

Thanks to commit 5af0263afd, binaryheap is available to frontend
code.  This commit replaces the open-coded heap implementation in
pg_dump_sort.c with a binaryheap, saving a few lines of code.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/3612876.1689443232%40sss.pgh.pa.us
src/bin/pg_dump/pg_dump_sort.c