Re: making relfilenodes 56 bits
Matthias van de Meent <boekewurm+postgres@gmail.com>
On Tue, 28 Jun 2022 at 13:45, Simon Riggs <simon.riggs@enterprisedb.com> wrote: > but since the number of combinations is usually 1, but even then, low, > it can be cached easily in a smgr array and included in the checkpoint > record (or nearby) for ease of use. I was reading the thread to keep up with storage-related prototypes and patches, and this specifically doesn't sound quite right to me. I do not know what values you considered to be 'low' or what 'can be cached easily', so here's some field data: I have seen PostgreSQL clusters that utilized the relative isolation of seperate databases within the same cluster (instance / postmaster) to provide higher guarantees of data access isolation while still being able to share a resource pool, which resulted in several clusters containing upwards of 100 databases. I will be the first to admit that it is quite unlikely to be common practise, but this workload increases the number of dbOid+spcOid combinations to 100s (even while using only a single tablespace), which in my opinion requires some more thought than just handwaving it into an smgr array and/or checkpoint records. Kind regards, Matthias van de Meent
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