Skip to content

Commit 5354092

Browse files
committed
pg_probackup.h move up
1 parent f540554 commit 5354092

File tree

15 files changed

+22
-38
lines changed

15 files changed

+22
-38
lines changed

src/archive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11-
#include <unistd.h>
12-
1311
#include "pg_probackup.h"
1412

13+
#include <unistd.h>
14+
1515
/*
1616
* pg_probackup specific archive command for archive backups
1717
* set archive_command = 'pg_probackup archive-push -B /home/anastasia/backup

src/backup.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11-
#include "postgres_fe.h"
11+
#include "pg_probackup.h"
1212

1313
#if PG_VERSION_NUM < 110000
1414
#include "catalog/catalog.h"
@@ -21,8 +21,6 @@
2121
#include <sys/stat.h>
2222
#include <unistd.h>
2323

24-
#include "pg_probackup.h"
25-
2624
#include "utils/thread.h"
2725

2826
#define PG_STOP_BACKUP_TIMEOUT 300

src/catalog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11+
#include "pg_probackup.h"
12+
1113
#include <dirent.h>
1214
#include <signal.h>
1315
#include <sys/stat.h>
1416
#include <unistd.h>
1517

16-
#include "pg_probackup.h"
17-
1818
static const char *backupModes[] = {"", "PAGE", "PTRACK", "DELTA", "FULL"};
1919
static pgBackup *readBackupControlFile(const char *path);
2020

src/data.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11-
#include "postgres_fe.h"
11+
#include "pg_probackup.h"
1212

1313
#include "storage/checksum.h"
1414
#include "storage/checksum_impl.h"
1515
#include <common/pg_lzcompress.h>
1616

1717
#include <sys/stat.h>
1818

19-
#include "pg_probackup.h"
20-
2119
#ifdef HAVE_LIBZ
2220
#include <zlib.h>
2321
#endif

src/delete.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11+
#include "pg_probackup.h"
12+
1113
#include <dirent.h>
1214
#include <time.h>
1315
#include <unistd.h>
1416

15-
#include "pg_probackup.h"
16-
1717
static int delete_backup_files(pgBackup *backup);
1818
static void delete_walfiles(XLogRecPtr oldest_lsn, TimeLineID oldest_tli,
1919
uint32 xlog_seg_size);

src/dir.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11-
#include "postgres_fe.h"
11+
#include "pg_probackup.h"
1212

1313
#if PG_VERSION_NUM < 110000
1414
#include "catalog/catalog.h"
@@ -19,8 +19,6 @@
1919
#include <sys/stat.h>
2020
#include <dirent.h>
2121

22-
#include "pg_probackup.h"
23-
2422
/*
2523
* The contents of these directories are removed or recreated during server
2624
* start so they are not included in backups. The directories themselves are

src/fetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11+
#include "pg_probackup.h"
12+
1113
#include <sys/stat.h>
1214
#include <unistd.h>
1315

14-
#include "pg_probackup.h"
15-
1616
/*
1717
* Read a file into memory. The file to be read is <datadir>/<path>.
1818
* The file contents are returned in a malloc'd buffer, and *filesize

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11+
#include "pg_probackup.h"
12+
1113
#include <unistd.h>
1214
#include <sys/stat.h>
1315

14-
#include "pg_probackup.h"
15-
1616
/*
1717
* Initialize backup catalog.
1818
*/

src/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
*-------------------------------------------------------------------------
88
*/
99

10+
#include "pg_probackup.h"
11+
1012
#include <sys/stat.h>
1113
#include <unistd.h>
1214

13-
#include "pg_probackup.h"
14-
1515
#include "utils/thread.h"
1616

1717
typedef struct

src/parsexlog.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*-------------------------------------------------------------------------
1111
*/
1212

13-
#include "postgres_fe.h"
13+
#include "pg_probackup.h"
1414

1515
#include "access/transam.h"
1616
#include "catalog/pg_control.h"
@@ -21,8 +21,6 @@
2121
#include <zlib.h>
2222
#endif
2323

24-
#include "pg_probackup.h"
25-
2624
#include "utils/thread.h"
2725

2826
/*

0 commit comments

Comments
 (0)