OSDN Git Service

Adjust the new memory limit in the lazy vacuum code to use MaxHeapTuplesPerPage
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 26 Sep 2007 20:16:28 +0000 (20:16 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 26 Sep 2007 20:16:28 +0000 (20:16 +0000)
tuples per page instead of fixed 200, to better cope with systems that use a
different block size.

src/backend/commands/vacuumlazy.c

index 91b2d75..d3aa277 100644 (file)
@@ -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
 {