diff options
Diffstat (limited to 'src/backend/tcop')
-rw-r--r-- | src/backend/tcop/postgres.c | 4 | ||||
-rw-r--r-- | src/backend/tcop/utility.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 7acaf9117db..556528d6d2d 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.416 2004/05/28 05:13:12 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.417 2004/05/29 22:48:20 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -110,7 +110,7 @@ static char *stack_base_ptr = NULL; * will reread the configuration file. (Better than doing the * reading in the signal handler, ey?) */ -static volatile bool got_SIGHUP = false; +static volatile sig_atomic_t got_SIGHUP = false; /* * Flag to keep track of whether we have started a transaction. diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 39b69c6248c..4d6c246cea1 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.217 2004/05/26 13:56:54 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.218 2004/05/29 22:48:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -45,6 +45,7 @@ #include "nodes/makefuncs.h" #include "parser/parse_expr.h" #include "parser/parse_type.h" +#include "postmaster/bgwriter.h" #include "rewrite/rewriteDefine.h" #include "rewrite/rewriteRemove.h" #include "storage/fd.h" @@ -54,7 +55,7 @@ #include "utils/guc.h" #include "utils/lsyscache.h" #include "utils/syscache.h" -#include "access/xlog.h" + /* * Error-checking support for DROP commands @@ -892,7 +893,7 @@ ProcessUtility(Node *parsetree, ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), errmsg("must be superuser to do CHECKPOINT"))); - CreateCheckPoint(false, false); + RequestCheckpoint(true); break; case T_ReindexStmt: |