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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user