diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-11-05 22:50:21 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-11-05 22:50:21 +0000 |
commit | f0e37a85319e6c113ecd3303cddeb6edd5a6ac44 (patch) | |
tree | dcca7027e03e7c17aa482d420d9f691c02eb65a5 /src/backend/tcop/utility.c | |
parent | 7267fdd7a3ae0a8a169e9730bdfaa46fde7dd94b (diff) | |
download | postgresql-f0e37a85319e6c113ecd3303cddeb6edd5a6ac44.tar.gz postgresql-f0e37a85319e6c113ecd3303cddeb6edd5a6ac44.zip |
New CHECKPOINT command.
Auto removing of offline log files and creating new file
at checkpoint time.
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 3c4c40c84cc..dd8bfe017a6 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.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; |