aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-03-09 15:49:10 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-03-09 15:50:49 +0200
commitf1fd515b393a283d7368ce45a92709d2c7f9a991 (patch)
tree8682d681e88ff0f608a2d8c7c2e2dd4f93ab4eb5 /src/backend
parentb9e538b190d9cf4387361214eadc430393ebf852 (diff)
downloadpostgresql-f1fd515b393a283d7368ce45a92709d2c7f9a991.tar.gz
postgresql-f1fd515b393a283d7368ce45a92709d2c7f9a991.zip
Move WAL-related definitions from dbcommands.h to separate header file.
This makes it easier to write frontend programs that needs to understand the WAL record format of CREATE/DROP DATABASE. dbcommands.h cannot easily be #included in a frontend program, because it pulls in other header files that need backend stuff, but the new dbcommands_xlog.h header file has fewer dependencies.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/rmgrdesc/dbasedesc.c2
-rw-r--r--src/backend/access/transam/rmgr.c2
-rw-r--r--src/backend/commands/dbcommands.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/access/rmgrdesc/dbasedesc.c b/src/backend/access/rmgrdesc/dbasedesc.c
index de199a3bbdf..2220afc5cb2 100644
--- a/src/backend/access/rmgrdesc/dbasedesc.c
+++ b/src/backend/access/rmgrdesc/dbasedesc.c
@@ -14,7 +14,7 @@
*/
#include "postgres.h"
-#include "commands/dbcommands.h"
+#include "commands/dbcommands_xlog.h"
#include "lib/stringinfo.h"
diff --git a/src/backend/access/transam/rmgr.c b/src/backend/access/transam/rmgr.c
index dcf423bdd73..acd825fad4f 100644
--- a/src/backend/access/transam/rmgr.c
+++ b/src/backend/access/transam/rmgr.c
@@ -20,7 +20,7 @@
#include "access/xact.h"
#include "access/xlog_internal.h"
#include "catalog/storage_xlog.h"
-#include "commands/dbcommands.h"
+#include "commands/dbcommands_xlog.h"
#include "commands/sequence.h"
#include "commands/tablespace.h"
#include "storage/standby.h"
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index 85791364205..a699ce3fd28 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -40,6 +40,7 @@
#include "catalog/pg_tablespace.h"
#include "commands/comment.h"
#include "commands/dbcommands.h"
+#include "commands/dbcommands_xlog.h"
#include "commands/defrem.h"
#include "commands/seclabel.h"
#include "commands/tablespace.h"