Re: making relfilenodes 56 bits
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Heikki Linnakangas <hlinnaka@iki.fi>, Thomas Munro <thomas.munro@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-07-13T04:05:54Z
Lists: pgsql-hackers
On Tue, Jul 12, 2022 at 7:21 PM Robert Haas <robertmhaas@gmail.com> wrote: > > In this version, I also removed the struct padding, changed the limit > on the number of entries to a nice round 64, and made some comment > updates. I considered trying to go further and actually make the file > variable-size, so that we never again need to worry about the limit on > the number of entries, but I don't actually think that's a good idea. > It would require substantially more changes to the code in this file, > and that means there's more risk of introducing bugs, and I don't see > that there's much value anyway, because if we ever do hit the current > limit, we can just raise the limit. > > If we were going to split up durable_rename(), the only intelligible > split I can see would be to have a second version of the function, or > a flag to the existing function, that caters to the situation where > the old file is already known to have been fsync()'d. The patch looks good except one minor comment + * corruption. Since the file might be more tha none standard-size disk + * sector in size, we cannot rely on overwrite-in-place. Instead, we generate typo "more tha none" -> "more than one" -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
Commits
-
Fix typos in comments, code and documentation
- 33ab0a2a527e 16.0 cited
-
Increase width of RelFileNumbers from 32 bits to 56 bits.
- 05d4cbf9b6ba 16.0 landed
-
Move RelFileNumber declarations to common/relpath.h.
- 2f47715cc864 16.0 landed
-
Include RelFileLocator fields individually in BufferTag.
- 82ac34db2036 16.0 landed
-
Convert macros to static inline functions (buf_internals.h)
- 3ac88fddd92c 16.0 landed
-
Remove the restriction that the relmap must be 512 bytes.
- d8cd0c6c95c0 16.0 landed
-
Change internal RelFileNode references to RelFileNumber or RelFileLocator.
- b0a55e43299c 16.0 landed
-
Reorder subskiplsn in pg_subscription to avoid alignment issues.
- 79b716cfb7a1 15.0 cited
-
Fix DROP {DATABASE,TABLESPACE} on Windows.
- 4eb2176318d0 15.0 cited
-
Restructure smgr API as per recent proposal. smgr no longer depends on
- 87bd95638552 8.0.0 cited