Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy