pgsql: Improve heuristics for compressing the KnownAssignedXids array.

2022-11-29 Thread Tom Lane
Improve heuristics for compressing the KnownAssignedXids array. Previously, we'd compress only when the active range of array entries reached Max(4 * PROCARRAY_MAXPROCS, 2 * pArray->numKnownAssignedXids). If max_connections is large, the first term could result in not compressing for a long time,

pgsql: Improve heuristics for compressing the KnownAssignedXids array.

2022-11-29 Thread Tom Lane
Improve heuristics for compressing the KnownAssignedXids array. Previously, we'd compress only when the active range of array entries reached Max(4 * PROCARRAY_MAXPROCS, 2 * pArray->numKnownAssignedXids). If max_connections is large, the first term could result in not compressing for a long time,

pgsql: Improve heuristics for compressing the KnownAssignedXids array.

2022-11-29 Thread Tom Lane
Improve heuristics for compressing the KnownAssignedXids array. Previously, we'd compress only when the active range of array entries reached Max(4 * PROCARRAY_MAXPROCS, 2 * pArray->numKnownAssignedXids). If max_connections is large, the first term could result in not compressing for a long time,

pgsql: Improve heuristics for compressing the KnownAssignedXids array.

2022-11-29 Thread Tom Lane
Improve heuristics for compressing the KnownAssignedXids array. Previously, we'd compress only when the active range of array entries reached Max(4 * PROCARRAY_MAXPROCS, 2 * pArray->numKnownAssignedXids). If max_connections is large, the first term could result in not compressing for a long time,

pgsql: Improve heuristics for compressing the KnownAssignedXids array.

2022-11-29 Thread Tom Lane
Improve heuristics for compressing the KnownAssignedXids array. Previously, we'd compress only when the active range of array entries reached Max(4 * PROCARRAY_MAXPROCS, 2 * pArray->numKnownAssignedXids). If max_connections is large, the first term could result in not compressing for a long time,

pgsql: Improve heuristics for compressing the KnownAssignedXids array.

2022-11-29 Thread Tom Lane
Improve heuristics for compressing the KnownAssignedXids array. Previously, we'd compress only when the active range of array entries reached Max(4 * PROCARRAY_MAXPROCS, 2 * pArray->numKnownAssignedXids). If max_connections is large, the first term could result in not compressing for a long time,