pgsql: Clean up some residual confusion between OIDs and RelFileNumbers

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Clean up some residual confusion between OIDs and RelFileNumbers
Date: 2022-07-28 14:27:32
Message-ID: E1oH4U7-001dwx-2P@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Clean up some residual confusion between OIDs and RelFileNumbers.

Commit b0a55e43299c4ea2a9a8c757f9c26352407d0ccc missed a few places
where we are referring to the number used as a part of the relation
filename as an "OID". We now want to call that a "RelFileNumber".

Some of these places actually made it sound like the OID in question
is pg_class.oid rather than pg_class.relfilenode, which is especially
good to clean up.

Dilip Kumar with some editing by me.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/851f4cc75cdd8c831f1baa9a7abf8c8248b65890

Modified Files
--------------
src/backend/commands/dbcommands.c | 4 ++--
src/backend/replication/basebackup.c | 16 +++++++------
src/backend/storage/file/reinit.c | 44 ++++++++++++++++++------------------
src/include/storage/reinit.h | 3 ++-
4 files changed, 35 insertions(+), 32 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2022-07-28 14:31:40 Re: pgsql: Clean up some residual confusion between OIDs and RelFileNumbers
Previous Message Alvaro Herrera 2022-07-28 06:41:27 pgsql: Fix replay of create database records on standby