mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
New CHECKPOINT command.
Auto removing of offline log files and creating new file at checkpoint time.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.98 2000/10/22 23:32:41 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.99 2000/11/05 22:50:21 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -44,7 +44,7 @@
|
||||
#include "utils/acl.h"
|
||||
#include "utils/ps_status.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
#include "access/xlog.h"
|
||||
|
||||
/*
|
||||
* Error-checking support for DROP commands
|
||||
@ -818,6 +818,14 @@ ProcessUtility(Node *parsetree,
|
||||
DropGroup((DropGroupStmt *) parsetree);
|
||||
break;
|
||||
|
||||
case T_CheckPointStmt:
|
||||
{
|
||||
set_ps_display(commandTag = "CHECKPOINT");
|
||||
|
||||
CreateCheckPoint(false);
|
||||
}
|
||||
break;
|
||||
|
||||
case T_ReindexStmt:
|
||||
{
|
||||
ReindexStmt *stmt = (ReindexStmt *) parsetree;
|
||||
|
Reference in New Issue
Block a user