Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2007-09-26 20:16:28 +0000
committerAlvaro Herrera2007-09-26 20:16:28 +0000
commitb83e11639baf7aed1e467a68ea1878b7848fe874 (patch)
treee6d9461b2d61fbb80323298c4f4bff964433b385
parentcdf0231c88bd65409f93904443ee4c021f021c64 (diff)
Adjust the new memory limit in the lazy vacuum code to use MaxHeapTuplesPerPage
tuples per page instead of fixed 200, to better cope with systems that use a different block size.
-rw-r--r--src/backend/commands/vacuumlazy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c
index 91b2d755f14..d3aa277ce83 100644
--- a/src/backend/commands/vacuumlazy.c
+++ b/src/backend/commands/vacuumlazy.c
@@ -38,7 +38,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.100 2007/09/24 03:52:55 alvherre Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.101 2007/09/26 20:16:28 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -75,7 +75,7 @@
* provide an upper limit to memory allocated when vacuuming small
* tables.
*/
-#define LAZY_ALLOC_TUPLES 200
+#define LAZY_ALLOC_TUPLES MaxHeapTuplesPerPage
typedef struct LVRelStats
{