8000 compatibility fixes for backport to v11 EE specific · postgrespro/ptrack@89d827c · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 89d827c

Browse files
committed
compatibility fixes for backport to v11 EE specific
Tags: ptrack
1 parent 1972eb4 commit 89d827c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ptrack.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#include "funcapi.h"
3838
#include "miscadmin.h"
3939
#include "nodes/pg_list.h"
40+
#ifdef PGPRO_EE
41+
/* For file_is_in_cfs_tablespace() only. */
42+
#include "replication/basebackup.h"
43+
#endif
4044
#include "storage/copydir.h"
4145
#include "storage/lmgr.h"
4246
#if PG_VERSION_NUM >= 120000
@@ -180,6 +184,14 @@ ptrack_copydir_hook(const char *path)
180184

181185
elog(DEBUG1, "ptrack_copydir_hook: spcOid %u, dbOid %u", spcOid, dbOid);
182186

187+
#ifdef PGPRO_EE
188+
/*
189+
* Currently, we do not track files from compressed tablespaces in ptrack.
190+
*/
191+
if (file_is_in_cfs_tablespace(path))
192+
elog(DEBUG1, "ptrack_copydir_hook: skipping changes tracking in the CFS tablespace %u", spcOid);
193+
else
194+
#endif
183195
ptrack_walkdir(path, spcOid, dbOid);
184196

185197
if (prev_copydir_hook)

0 commit comments

Comments
 (0)
0