Skip to content

Commit 1042de6

Browse files
committed
pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid
Commit 6df7a96 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
1 parent ef4edf8 commit 1042de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4652,7 +4652,7 @@ binary_upgrade_set_type_oids_by_type_oid(Archive *fout,
46524652
{
46534653
if (fout->remoteVersion >= 140000)
46544654
{
4655-
appendPQExpBuffer(upgrade_query,
4655+
printfPQExpBuffer(upgrade_query,
46564656
"SELECT t.oid, t.typarray "
46574657
"FROM pg_catalog.pg_type t "
46584658
"JOIN pg_catalog.pg_range r "

0 commit comments

Comments
 (0)