File tree Expand file tree Collapse file tree 12 files changed +58
-56
lines changed Expand file tree Collapse file tree 12 files changed +58
-56
lines changed Original file line number Diff line number Diff line change 1414 */
1515#include "postgres.h"
1616
17+ #include "access/xlog.h"
1718#include "access/xlog_internal.h"
1819#include "catalog/pg_control.h"
1920#include "utils/guc.h"
Original file line number Diff line number Diff line change 2020#include <signal.h>
2121#include <unistd.h>
2222
23+ #include "access/xlog.h"
2324#include "access/xlog_internal.h"
2425#include "miscadmin.h"
2526#include "postmaster/startup.h"
Original file line number Diff line number Diff line change 1818
1919#include "access/htup_details.h"
2020#include "access/xlog.h"
21+ #include "access/xlog_fn.h"
2122#include "access/xlog_internal.h"
2223#include "access/xlogutils.h"
2324#include "catalog/catalog.h"
Original file line number Diff line number Diff line change 3939#include <time.h>
4040#include <unistd.h>
4141
42+ #include "access/xlog.h"
4243#include "access/xlog_internal.h"
4344#include "libpq/pqsignal.h"
4445#include "miscadmin.h"
Original file line number Diff line number Diff line change 4141#include <time.h>
4242#include <unistd.h>
4343
44+ #include "access/xlog.h"
4445#include "access/xlog_internal.h"
4546#include "libpq/pqsignal.h"
4647#include "miscadmin.h"
Original file line number Diff line number Diff line change 3232#include <sys/wait.h>
3333#include <unistd.h>
3434
35+ #include "access/xlog.h"
3536#include "access/xlog_internal.h"
3637#include "libpq/pqsignal.h"
3738#include "miscadmin.h"
Original file line number Diff line number Diff line change 1111 *-------------------------------------------------------------------------
1212 */
1313
14- /*
15- * We have to use postgres.h not postgres_fe.h here, because there's so much
16- * backend-only stuff in the XLOG include files we need. But we need a
17- * frontend-ish environment otherwise. Hence this ugly hack.
18- */
19- #define FRONTEND 1
20- #include "postgres.h"
14+ #include "postgres_fe.h"
2115#include "libpq-fe.h"
2216
2317#include <unistd.h>
Original file line number Diff line number Diff line change 1212 *-------------------------------------------------------------------------
1313 */
1414
15- /*
16- * We have to use postgres.h not postgres_fe.h here, because there's so much
17- * backend-only stuff in the XLOG include files we need. But we need a
18- * frontend-ish environment otherwise. Hence this ugly hack.
19- */
20- #define FRONTEND 1
21- #include "postgres.h"
15+ #include "postgres_fe.h"
2216#include "libpq-fe.h"
2317#include "libpq/pqsignal.h"
2418#include "access/xlog_internal.h"
Original file line number Diff line number Diff line change 1111 * src/bin/pg_basebackup/receivelog.c
1212 *-------------------------------------------------------------------------
1313 */
14-
15- /*
16- * We have to use postgres.h not postgres_fe.h here, because there's so much
17- * backend-only stuff in the XLOG include files we need. But we need a
18- * frontend-ish environment otherwise. Hence this ugly hack.
19- */
20- #define FRONTEND 1
21- #include "postgres.h"
14+ #include "postgres_fe.h"
2215
2316#include <sys/stat.h>
2417#include <sys/time.h>
3023
3124#include "libpq-fe.h"
3225#include "access/xlog_internal.h"
33- #include "utils/datetime.h"
34- #include "utils/timestamp.h"
3526
3627#include "receivelog.h"
3728#include "streamutil.h"
Original file line number Diff line number Diff line change 1111 *-------------------------------------------------------------------------
1212 */
1313
14- /*
15- * We have to use postgres.h not postgres_fe.h here, because there's so much
16- * backend-only stuff in the XLOG include files we need. But we need a
17- * frontend-ish environment otherwise. Hence this ugly hack.
18- */
19- #define FRONTEND 1
20- #include "postgres.h"
14+ #include "postgres_fe.h"
2115#include "streamutil.h"
2216
2317#include <stdio.h>
You can’t perform that action at this time.
0 commit comments