diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2006-07-30 02:07:18 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2006-07-30 02:07:18 +0000 |
commit | 92c2ecc130239b38580b5c11c532d2e027fc2d06 (patch) | |
tree | 2bf07845ef589b6e60b63603bdaae04cf1021357 /src/backend/access/transam/xlog.c | |
parent | d6603791eac6b3153c0078335faec458598b4de9 (diff) | |
download | postgresql-92c2ecc130239b38580b5c11c532d2e027fc2d06.tar.gz |
Modify snapshot definition so that lazy vacuums are ignored by other
vacuums. This allows a OLTP-like system with big tables to continue
regular vacuuming on small-but-frequently-updated tables while the
big tables are being vacuumed.
Original patch from Hannu Krossing, rewritten by Tom Lane and updated
by me.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index e9265dde48..6b5c5ac0da 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.244 2006/07/14 14:52:17 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.245 2006/07/30 02:07:18 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -5413,7 +5413,7 @@ CreateCheckPoint(bool shutdown, bool force) * StartupSUBTRANS hasn't been called yet. */ if (!InRecovery) - TruncateSUBTRANS(GetOldestXmin(true)); + TruncateSUBTRANS(GetOldestXmin(true, false)); if (!shutdown) ereport(DEBUG2, |