We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents89624b9 +8f5561f commit166c3dcCopy full SHA for 166c3dc
ptrack.c
@@ -290,6 +290,10 @@ ptrack_gather_filelist(List **filelist, char *path, Oid spcOid, Oid dbOid)
290
{
291
DIR*dir;
292
structdirent*de;
293
+#ifPG_VERSION_NUM >=180000
294
+RelPathStrstr;
295
+#endif
296
+
297
dir=AllocateDir(path);
298
299
while ((de=ReadDirExtended(dir,path,LOG))!=NULL)
@@ -364,8 +368,14 @@ ptrack_gather_filelist(List **filelist, char *path, Oid spcOid, Oid dbOid)
364
368
#endif
365
369
nodeDb(pfl->relnode)=dbOid;
366
370
nodeSpc(pfl->relnode)=spcOid==InvalidOid ?DEFAULTTABLESPACE_OID :spcOid;
371
372
+str=GetRelationPath(dbOid,nodeSpc(pfl->relnode),
373
+nodeRel(pfl->relnode),InvalidBackendId,pfl->forknum);
374
+pfl->path=pstrdup(str.str);
375
+#else
367
376
pfl->path=GetRelationPath(dbOid,nodeSpc(pfl->relnode),
377
nodeRel(pfl->relnode),InvalidBackendId,pfl->forknum);
378
379
380
*filelist=lappend(*filelist,pfl);
381