1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

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.
This commit is contained in:
Heikki Linnakangas
2015-03-09 15:49:10 +02:00
parent b9e538b190
commit f1fd515b39
6 changed files with 48 additions and 27 deletions

View File

@ -14,7 +14,7 @@
*/
#include "postgres.h"
#include "commands/dbcommands.h"
#include "commands/dbcommands_xlog.h"
#include "lib/stringinfo.h"

View File

@ -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"

View File

@ -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"