diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-12-13 14:59:13 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-12-13 14:59:13 +0200 |
commit | 527668717a660e67c2a6cfd4e85f7a513f99f6f2 (patch) | |
tree | 1e07f83161d261fded44757ba89b5e2e48a9babb /src/bin/pg_basebackup/pg_basebackup.c | |
parent | 6264cd3d69b519b6e6f2470e3c23ad1ef1ddff66 (diff) | |
download | postgresql-527668717a660e67c2a6cfd4e85f7a513f99f6f2.tar.gz postgresql-527668717a660e67c2a6cfd4e85f7a513f99f6f2.zip |
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
Diffstat (limited to 'src/bin/pg_basebackup/pg_basebackup.c')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 4f22116c3ee..4249c0417d1 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -11,13 +11,7 @@ *------------------------------------------------------------------------- */ -/* - * 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 "libpq-fe.h" #include <unistd.h> |