Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7208978

Browse files
committed
Include catalog/catalog.h for pre PG 11
1 parent 2f3ebb4 commit 7208978

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/backup.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
#include "postgres_fe.h"
1212

13+
#if PG_VERSION_NUM < 110000
14+
#include "catalog/catalog.h"
15+
#endif
1316
#include "catalog/pg_tablespace.h"
14-
#include "common/relpath.h"
1517
#include "pgtar.h"
1618
#include "receivelog.h"
1719
#include "streamutil.h"

src/dir.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
#include "postgres_fe.h"
1212

13+
#if PG_VERSION_NUM < 110000
14+
#include "catalog/catalog.h"
15+
#endif
1316
#include "catalog/pg_tablespace.h"
14-
#include "common/relpath.h"
1517

1618
#include <unistd.h>
1719
#include <sys/stat.h>

0 commit comments

Comments
 (0)