wip: bulk extend
authorAndres Freund <[email protected]>
Mon, 9 Nov 2020 22:27:39 +0000 (14:27 -0800)
committerAndres Freund <[email protected]>
Mon, 11 Jan 2021 23:09:15 +0000 (15:09 -0800)
Author:
Reviewed-By:
Discussion: https://postgr.es/m/
Backpatch:

src/backend/access/common/syncscan.c
src/backend/access/heap/vacuumlazy.c

index b78c83f76cfa96a393bdd0b0c1fa7622ac7d1901..b7a28af4ad822037bbe60434d2083db1458df1c9 100644 (file)
@@ -80,7 +80,7 @@ bool      trace_syncscan = false;
  * the buffer cache anyway, and on the other hand the page is most likely
  * still in the OS cache.
  */
-#define SYNC_SCAN_REPORT_INTERVAL ((4 * 1024 * 1024) / BLCKSZ)
+#define SYNC_SCAN_REPORT_INTERVAL (128 * 1024 / BLCKSZ)
 
 
 /*
index fe3d2c59717a7aafc9d13158d6ea14aa0ecdf4c2..087216a3c060efe865cce42f274e7d9ebdddd5bd 100644 (file)
@@ -89,7 +89,7 @@
  * REL_TRUNCATE_MINIMUM or (relsize / REL_TRUNCATE_FRACTION) (whichever
  * is less) potentially-freeable pages.
  */
-#define REL_TRUNCATE_MINIMUM   1000
+#define REL_TRUNCATE_MINIMUM   2000
 #define REL_TRUNCATE_FRACTION  16
 
 /*