Skip to content

Commit 665ca54

Browse files
committed
Fix mistake in bbe08b8.
The earlier commit used pg_class.relfilenode where it should have used pg_class.oid. This could lead to emitting an UPDATE statement into the dump that would update nothing (or the wrong thing) when executed in the new cluster, resulting in relfrozenxid and relminmxid being improperly carried forward for pg_largeobject. Noticed by Dilip Kumar. Discussion: http://postgr.es/m/CAFiTN-ty1Gzs6stk2vt9BJiq0m0hzf=aPnh3a-4Z3Tk5GzoENw@mail.gmail.com
1 parent 798d644 commit 665ca54

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
@@ -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
relfilenode = atooid(PQgetvalue(lo_res, i, i_relfilenode));

0 commit comments

Comments
 (0)