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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy