diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-07-28 10:08:10 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-07-28 10:20:29 -0400 |
commit | 851f4cc75cdd8c831f1baa9a7abf8c8248b65890 (patch) | |
tree | f0cb2019773365b1b149f3f1d857f75572a9532f /src/backend/commands/dbcommands.c | |
parent | 9e4f914b5eba3f49ab99bdecdc4f96fac099571f (diff) | |
download | postgresql-851f4cc75cdd8c831f1baa9a7abf8c8248b65890.tar.gz postgresql-851f4cc75cdd8c831f1baa9a7abf8c8248b65890.zip |
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.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |