1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Wrap multixact/members correctly during extension, take 2

In a50d976254 I already changed this, but got it wrong for the case
where the number of members is larger than the number of entries that
fit in the last page of the last segment.

As reported by Serge Negodyuck in a followup to bug #8673.
This commit is contained in:
Alvaro Herrera
2014-06-09 15:17:23 -04:00
parent e2f02ed64e
commit 167a2535f8
2 changed files with 36 additions and 15 deletions

View File

@@ -25,6 +25,8 @@
#define MultiXactIdIsValid(multi) ((multi) != InvalidMultiXactId)
#define MaxMultiXactOffset ((MultiXactOffset) 0xFFFFFFFF)
/* Number of SLRU buffers to use for multixact */
#define NUM_MXACTOFFSET_BUFFERS 8
#define NUM_MXACTMEMBER_BUFFERS 16