Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 82e38ab

Browse files
committed
pg_controldata needs #define FRONTEND, same as pg_resetxlog.
Per buildfarm results from dawn_bat.
1 parent 77acab7 commit 82e38ab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/bin/pg_controldata/pg_controldata.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
77
* licence: BSD
88
*
9-
* $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.47 2010/04/28 16:10:43 heikki Exp $
9+
* $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.48 2010/04/28 17:35:35 tgl Exp $
1010
*/
11+
12+
/*
13+
* We have to use postgres.h not postgres_fe.h here, because there's so much
14+
* backend-only stuff in the XLOG include files we need. But we need a
15+
* frontend-ish environment otherwise. Hence this ugly hack.
16+
*/
17+
#define FRONTEND 1
18+
1119
#include "postgres.h"
1220

1321
#include <unistd.h>

0 commit comments

Comments
 (0)