Skip to content

Commit cf5fc9b

Browse files
authored
Merge pull request #46 from postgrespro/master-merge
Master merge
2 parents 62bd42d + 3c50e7e commit cf5fc9b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

ptrack.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525

2626
#include "postgres.h"
2727

28+
#if PG_VERSION_NUM >= 190000
29+
#include <dirent.h>
30+
#endif
31+
2832
#include <unistd.h>
2933
#include <sys/stat.h>
3034

@@ -45,6 +49,10 @@
4549
#endif
4650
#include "storage/smgr.h"
4751
#include "storage/reinit.h"
52+
#if PG_VERSION_NUM >= 190000
53+
#include "storage/fd.h"
54+
#include "storage/shmem.h"
55+
#endif
4856
#include "utils/builtins.h"
4957
#include "utils/guc.h"
5058
#include "utils/pg_lsn.h"
@@ -264,7 +272,7 @@ ptrack_mdextend_hook(RelFileNodeBackend smgr_rnode,
264272
}
265273

266274
static void
267-
ptrack_ProcessSyncRequests_hook()
275+
ptrack_ProcessSyncRequests_hook(void)
268276
{
269277
ptrackCheckpoint();
270278

@@ -561,6 +569,9 @@ ptrack_get_pagemapset(PG_FUNCTION_ARGS)
561569
TupleDescInitEntry(tupdesc, (AttrNumber) 1, "path", TEXTOID, -1, 0);
562570
TupleDescInitEntry(tupdesc, (AttrNumber) 2, "pagecount", INT8OID, -1, 0);
563571
TupleDescInitEntry(tupdesc, (AttrNumber) 3, "pagemap", BYTEAOID, -1, 0);
572+
#if PG_VERSION_NUM >= 190000
573+
TupleDescFinalize(tupdesc);
574+
#endif
564575
funcctx->tuple_desc = BlessTupleDesc(tupdesc);
565576

566577
funcctx->user_fctx = ctx;

0 commit comments

Comments
 (0)