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

Commit80d6907

Browse files
committed
Fix mistake inbbe08b8.
The earlier commit used pg_class.relfilenode where it should haveused pg_class.oid. This could lead to emitting an UPDATE statementinto the dump that would update nothing (or the wrong thing) whenexecuted in the new cluster, resulting in relfrozenxid andrelminmxid being improperly carried forward for pg_largeobject.Noticed by Dilip Kumar.Discussion:http://postgr.es/m/CAFiTN-ty1Gzs6stk2vt9BJiq0m0hzf=aPnh3a-4Z3Tk5GzoENw@mail.gmail.com
1 parent59be1c9 commit80d6907

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
@@ -3180,7 +3180,7 @@ dumpDatabase(Archive *fout)
31803180
"WHERE oid = %u;\n",
31813181
atooid(PQgetvalue(lo_res, i, i_relfrozenxid)),
31823182
atooid(PQgetvalue(lo_res, i, i_relminmxid)),
3183-
atooid(PQgetvalue(lo_res, i,i_relfilenode)));
3183+
atooid(PQgetvalue(lo_res, i,i_oid)));
31843184

31853185
oid = atooid(PQgetvalue(lo_res, i, i_oid));
31863186
relfilenumber = atooid(PQgetvalue(lo_res, i, i_relfilenode));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp