From f32ba354a28e2b59f1f636164d557c98361c1648 Mon Sep 17 00:00:00 2001 From: Tan Ho Van Date: Sun, 15 Aug 2021 11:43:42 +0700 Subject: [PATCH] Support postgres 13: change jsonapi header location --- wal2mongo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wal2mongo.c b/wal2mongo.c index e9d7812..eefba73 100644 --- a/wal2mongo.c +++ b/wal2mongo.c @@ -23,7 +23,11 @@ #include "utils/memutils.h" #include "utils/rel.h" #include "utils/guc.h" +#if PG_VERSION_NUM >= 130000 +#include "common/jsonapi.h" +#else #include "utils/jsonapi.h" +#endif #include "utils/datetime.h"