pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jan 2022 18:54:24 +0000 (13:54 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jan 2022 18:54:24 +0000 (13:54 -0500)
commitac7df108cf32e11e4bd120898ed09bd58fa5b62c
treef1be459ce45bdd57e25a71f874906f81317d3b0f
parent353708e1fb2d8b1a34f6da2c25d4bb6633cf4493
pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid

Commit 6df7a9698 wrote appendPQExpBuffer where it should have
written printfPQExpBuffer.  This resulted in re-issuing the
previous query along with the desired one, which very accidentally
had no negative consequences except for some wasted cycles.

Back-patch to v14 where that came in.

Discussion: https://postgr.es/m/1714711.1642962663@sss.pgh.pa.us
src/bin/pg_dump/pg_dump.c