pgsql: Fix mistake in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix mistake in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.
Date: 2022-07-29 15:27:33
Message-ID: E1oHRtk-001nVq-7y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/80d690721973f6a031143a24a34b78a0225101a2

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-07-29 17:31:31 pgsql: In transformRowExpr(), check for too many columns in the row.
Previous Message Robert Haas 2022-07-29 12:23:36 Re: pgsql: Use TRUNCATE to preserve relfilenode for pg_largeobject + index.