mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Make xlog_internal.h includable in frontend context.
This makes unnecessary the ugly hack used to #include postgres.h in pg_basebackup. Based on Alvaro Herrera's patch
This commit is contained in:
@ -11,14 +11,7 @@
|
||||
* src/bin/pg_basebackup/receivelog.c
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
* We have to use postgres.h not postgres_fe.h here, because there's so much
|
||||
* backend-only stuff in the XLOG include files we need. But we need a
|
||||
* frontend-ish environment otherwise. Hence this ugly hack.
|
||||
*/
|
||||
#define FRONTEND 1
|
||||
#include "postgres.h"
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
@ -30,8 +23,6 @@
|
||||
|
||||
#include "libpq-fe.h"
|
||||
#include "access/xlog_internal.h"
|
||||
#include "utils/datetime.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
#include "receivelog.h"
|
||||
#include "streamutil.h"
|
||||
|
Reference in New Issue
Block a user