Commit b83e1163 authored by Alvaro Herrera's avatar Alvaro Herrera

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.
parent cdf0231c
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* *
* *
* IDENTIFICATION * 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 @@ ...@@ -75,7 +75,7 @@
* provide an upper limit to memory allocated when vacuuming small * provide an upper limit to memory allocated when vacuuming small
* tables. * tables.
*/ */
#define LAZY_ALLOC_TUPLES 200 #define LAZY_ALLOC_TUPLES MaxHeapTuplesPerPage
typedef struct LVRelStats typedef struct LVRelStats
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment