1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

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.
This commit is contained in:
Tom Lane
2002-09-26 22:58:34 +00:00
parent c87469e64a
commit b2ab1e6bc9
5 changed files with 26 additions and 25 deletions

View File

@@ -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: