From 851f4cc75cdd8c831f1baa9a7abf8c8248b65890 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 28 Jul 2022 10:08:10 -0400 Subject: 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. --- src/backend/commands/dbcommands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/dbcommands.c') diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 95844bbb691..7bc53f3a0bb 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -254,7 +254,7 @@ ScanSourceDatabasePgClass(Oid tbid, Oid dbid, char *srcpath) BlockNumber nblocks; BlockNumber blkno; Buffer buf; - Oid relfilenumber; + RelFileNumber relfilenumber; Page page; List *rlocatorlist = NIL; LockRelId relid; @@ -401,7 +401,7 @@ ScanSourceDatabasePgClassTuple(HeapTupleData *tuple, Oid tbid, Oid dbid, { CreateDBRelInfo *relinfo; Form_pg_class classForm; - Oid relfilenumber = InvalidRelFileNumber; + RelFileNumber relfilenumber = InvalidRelFileNumber; classForm = (Form_pg_class) GETSTRUCT(tuple); -- cgit v1.2.3