Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ac7df10

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 353708e commit ac7df10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4574,7 +4574,7 @@ binary_upgrade_set_type_oids_by_type_oid(Archive *fout,
45744574
{
45754575
if (fout->remoteVersion >= 140000)
45764576
{
4577-
appendPQExpBuffer(upgrade_query,
4577+
printfPQExpBuffer(upgrade_query,
45784578
"SELECT t.oid, t.typarray "
45794579
"FROM pg_catalog.pg_type t "
45804580
"JOIN pg_catalog.pg_range r "

0 commit comments

Comments
 (0)