Fix mistake in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.
authorRobert Haas <rhaas@postgresql.org>
Fri, 29 Jul 2022 15:20:07 +0000 (11:20 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 Jul 2022 15:24:57 +0000 (11:24 -0400)
commit665ca54c551c27ec77f133cd72fbc0f7be7aa845
tree6e054502c5043554a7ad0426431254d91bfd7650
parent798d64488ca91df3382fa195bf9f0f772995bdf4
Fix mistake in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.

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
src/bin/pg_dump/pg_dump.c