Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit05b033e

Browse files
committed
fix compatibility fixes for backport to v11.
bring back checkpoint hook.
1 parentb2f5131 commit05b033e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

‎ptrack.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#ifPG_VERSION_NUM >=120000
4747
#include"storage/md.h"
4848
#endif
49+
#include"storage/smgr.h"
4950
#include"storage/reinit.h"
5051
#include"utils/builtins.h"
5152
#include"utils/guc.h"
@@ -64,9 +65,7 @@ intptrack_map_size_tmp;
6465
staticcopydir_hook_typeprev_copydir_hook=NULL;
6566
staticmdwrite_hook_typeprev_mdwrite_hook=NULL;
6667
staticmdextend_hook_typeprev_mdextend_hook=NULL;
67-
#ifPG_VERSION_NUM >=120000
6868
staticProcessSyncRequests_hook_typeprev_ProcessSyncRequests_hook=NULL;
69-
#endif
7069

7170
void_PG_init(void);
7271
void_PG_fini(void);
@@ -76,9 +75,8 @@ static void ptrack_mdwrite_hook(RelFileNodeBackend smgr_rnode,
7675
ForkNumberforkno,BlockNumberblkno);
7776
staticvoidptrack_mdextend_hook(RelFileNodeBackendsmgr_rnode,
7877
ForkNumberforkno,BlockNumberblkno);
79-
#ifPG_VERSION_NUM >=120000
8078
staticvoidptrack_ProcessSyncRequests_hook(void);
81-
#endif
79+
8280
staticvoidptrack_gather_filelist(List**filelist,char*path,OidspcOid,OiddbOid);
8381
staticintptrack_filelist_getnext(PtScanCtx*ctx);
8482

@@ -120,10 +118,8 @@ _PG_init(void)
120118
mdwrite_hook=ptrack_mdwrite_hook;
121119
prev_mdextend_hook=mdextend_hook;
122120
mdextend_hook=ptrack_mdextend_hook;
123-
#ifPG_VERSION_NUM >=120000
124121
prev_ProcessSyncRequests_hook=ProcessSyncRequests_hook;
125122
ProcessSyncRequests_hook=ptrack_ProcessSyncRequests_hook;
126-
#endif
127123
}
128124

129125
/*
@@ -136,9 +132,7 @@ _PG_fini(void)
136132
copydir_hook=prev_copydir_hook;
137133
mdwrite_hook=prev_mdwrite_hook;
138134
mdextend_hook=prev_mdextend_hook;
139-
#ifPG_VERSION_NUM >=120000
140135
ProcessSyncRequests_hook=prev_ProcessSyncRequests_hook;
141-
#endif
142136
}
143137

144138
/*
@@ -218,7 +212,6 @@ ptrack_mdextend_hook(RelFileNodeBackend smgr_rnode,
218212
prev_mdextend_hook(smgr_rnode,forknum,blocknum);
219213
}
220214

221-
#ifPG_VERSION_NUM >=120000
222215
staticvoid
223216
ptrack_ProcessSyncRequests_hook()
224217
{
@@ -227,7 +220,6 @@ ptrack_ProcessSyncRequests_hook()
227220
if (prev_ProcessSyncRequests_hook)
228221
prev_ProcessSyncRequests_hook();
229222
}
230-
#endif
231223

232224
/*
233225
* Recursively walk through the path and add all data files to filelist.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp