1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-22 21:53:06 +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:
Heikki Linnakangas
2012-12-13 14:59:13 +02:00
parent 6264cd3d69
commit 527668717a
12 changed files with 58 additions and 56 deletions

View File

@@ -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 "streamutil.h"
#include <stdio.h>