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>, vignesh C <vignesh21@gmail.com>
Date: 2022-07-27T16:37:16Z
Lists: pgsql-hackers
On Wed, 27 Jul 2022 at 9:49 PM, Dilip Kumar <dilipbalaut@gmail.com> wrote: > On Wed, Jul 27, 2022 at 12:07 AM Robert Haas <robertmhaas@gmail.com> > wrote: > > > > On Tue, Jul 26, 2022 at 2:07 AM Dilip Kumar <dilipbalaut@gmail.com> > wrote: > > > I have thought about it while doing so but I am not sure whether it is > > > a good idea or not, because before my change these all were macros > > > with 2 naming conventions so I just changed to inline function so why > > > to change the name. > > > > Well, the reason to change the name would be for consistency. It feels > > weird to have some NAMES_LIKETHIS() and other NamesLikeThis(). > > > > Now, an argument against that is that it will make back-patching more > > annoying, if any code using these functions/macros is touched. But > > since the calling sequence is changing anyway (you now have to pass a > > pointer rather than the object itself) that argument doesn't really > > carry any weight. So I would favor ClearBufferTag(), InitBufferTag(), > > etc. > > Okay, so I have renamed these 2 functions and BUFFERTAGS_EQUAL as well > to BufferTagEqual(). Just realised that this should have been BufferTagsEqual instead of BufferTagEqual I will modify this and send an updated patch tomorrow. — Dilip > -- 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