Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e712254 commit 4c83e59Copy full SHA for 4c83e59
src/backend/access/transam/commit_ts.c
@@ -508,13 +508,14 @@ pg_xact_commit_timestamp_origin(PG_FUNCTION_ARGS)
508
/*
509
* Number of shared CommitTS buffers.
510
*
511
- * We use a very similar logic as for the number of CLOG buffers; see comments
512
- * in CLOGShmemBuffers.
+ * We use a very similar logic as for the number of CLOG buffers (except we
+ * scale up twice as fast with shared buffers, and the maximum is twice as
513
+ * high); see comments in CLOGShmemBuffers.
514
*/
515
Size
516
CommitTsShmemBuffers(void)
517
{
- return Min(16, Max(4, NBuffers / 1024));
518
+ return Min(256, Max(4, NBuffers / 256));
519
}
520
521
0 commit comments