Content-Length: 255943 | pFad | http://github.com/postgrespro/postgres/commit/ac7df108cf32e11e4bd120898ed09bd58fa5b62c

C7 pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid · postgrespro/postgres@ac7df10 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ac7df108cf32e11e4bd120898ed09bd58fa5b62c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy