diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-26 22:58:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-26 22:58:34 +0000 |
commit | b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c (patch) | |
tree | bb3be2527c94154e02a290655b9584d00a940879 /src/backend/tcop/utility.c | |
parent | c87469e64a9b893b72254a1850c366fb04777430 (diff) | |
download | postgresql-b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c.tar.gz postgresql-b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c.zip |
Ensure that before truncating CLOG, we force a checkpoint even if no
recent WAL activity has occurred. Without this, it's possible that a
later crash might leave tuples on disk with un-updated commit status
bits.
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 92d876b265b..c6bd3050825 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.177 2002/09/04 20:31:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.178 2002/09/26 22:58:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -831,11 +831,9 @@ ProcessUtility(Node *parsetree, break; case T_CheckPointStmt: - { - if (!superuser()) - elog(ERROR, "permission denied"); - CreateCheckPoint(false); - } + if (!superuser()) + elog(ERROR, "permission denied"); + CreateCheckPoint(false, false); break; case T_ReindexStmt: |