@@ -109,7 +109,7 @@ is_cfm_file_path(const char *filepath) {
109109return strlen (filepath ) >=5 && strcmp (& filepath [len - 4 ],".cfm" )== 0 ;
110110}
111111
112- #ifdef PGPRO_EE
112+ #if CFS_SUPPORT
113113/*
114114 * Determines the relation file size specified by fullpath as if it
115115 * was not compressed.
@@ -120,7 +120,7 @@ get_cfs_relation_file_decompressed_size(RelFileNodeBackend rnode, const char *fu
120120int compressor ;
121121off_t size ;
122122
123- compressor = md_get_compressor_internal (rnode . node ,rnode .backend ,forknum );
123+ compressor = md_get_compressor_internal (nodeOf ( rnode ) ,rnode .backend ,forknum );
124124fd = PathNameOpenFile (fullpath ,O_RDWR |PG_BINARY ,compressor );
125125
126126if (fd < 0 )
@@ -540,7 +540,7 @@ assign_ptrack_map_size(int newval, void *extra)
540540 * For use in functions that copy directories bypassing buffer manager.
541541 */
542542static void
543- #ifdef PGPRO_EE
543+ #if CFS_SUPPORT
544544ptrack_mark_file (Oid dbOid ,Oid tablespaceOid ,
545545const char * filepath ,const char * filename ,bool is_cfs )
546546#else
@@ -555,7 +555,7 @@ ptrack_mark_file(Oid dbOid, Oid tablespaceOid,
555555struct stat stat_buf ;
556556int oidchars ;
557557char oidbuf [OIDCHARS + 1 ];
558- #ifdef PGPRO_EE
558+ #if CFS_SUPPORT
559559off_t rel_size ;
560560#endif
561561
@@ -576,11 +576,11 @@ ptrack_mark_file(Oid dbOid, Oid tablespaceOid,
576576oidbuf [oidchars ]= '\0' ;
577577nodeRel (nodeOf (rnode ))= atooid (oidbuf );
578578
579- #ifdef PGPRO_EE
579+ #if CFS_SUPPORT
580580// if current tablespace is cfs-compressed and md_get_compressor_internal
581581// returns the type of the compressing algorithm for filepath, then it
582582// needs to be de-compressed to obtain its size
583- if (is_cfs && md_get_compressor_internal (rnode . node ,rnode .backend ,forknum )!= 0 ) {
583+ if (is_cfs && md_get_compressor_internal (nodeOf ( rnode ) ,rnode .backend ,forknum )!= 0 ) {
584584rel_size = get_cfs_relation_file_decompressed_size (rnode ,filepath ,forknum );
585585
586586if (rel_size == (off_t )- 1 ) {
@@ -611,7 +611,7 @@ ptrack_walkdir(const char *path, Oid tablespaceOid, Oid dbOid)
611611{
612612DIR * dir ;
613613struct dirent * de ;
614- #ifdef PGPRO_EE
614+ #if CFS_SUPPORT
615615bool is_cfs ;
616616#endif
617617
@@ -622,7 +622,7 @@ ptrack_walkdir(const char *path, Oid tablespaceOid, Oid dbOid)
622622|| InitializingParallelWorker )
623623return ;
624624
625- #ifdef PGPRO_EE
625+ #if CFS_SUPPORT
626626is_cfs = file_is_in_cfs_tablespace (path );
627627#endif
628628
@@ -653,7 +653,7 @@ ptrack_walkdir(const char *path, Oid tablespaceOid, Oid dbOid)
653653}
654654
655655if (S_ISREG (fst .st_mode ))
656- #ifdef PGPRO_EE
656+ #if CFS_SUPPORT
657657ptrack_mark_file (dbOid ,tablespaceOid ,subpath ,de -> d_name ,is_cfs );
658658#else
659659ptrack_mark_file (dbOid ,tablespaceOid ,subpath ,de -> d_name );