Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac7df10

Browse files
committed
pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid
Commit6df7a96 wrote appendPQExpBuffer where it should havewritten printfPQExpBuffer. This resulted in re-issuing theprevious query along with the desired one, which very accidentallyhad 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 parent353708e commitac7df10

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)

[8]ページ先頭

©2009-2025 Movatter.jp