Skip to content

New PostgreSQL 16 changes break compilation #71

@karpov-sv

Description

@karpov-sv

Just to keep track of things - recently (since PG16?..) they split some definitions from postgres.h into varatt.h. The following changes are necessary to compile RTS2:

diff --git a/src/pgsql/pg_wcs.c b/src/pgsql/pg_wcs.c
index 8570795fe..dc61fca75 100644
--- a/src/pgsql/pg_wcs.c
+++ b/src/pgsql/pg_wcs.c
@@ -21,6 +21,7 @@
 
 #include <postgres.h>
 #include <fmgr.h>
+#include <varatt.h>
 #ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
 #endif
diff --git a/src/pgsql/pg_wcs2.c b/src/pgsql/pg_wcs2.c
index 62ef7d096..9b5d1f29a 100644
--- a/src/pgsql/pg_wcs2.c
+++ b/src/pgsql/pg_wcs2.c
@@ -21,6 +21,7 @@
 
 #include <postgres.h>
 #include <fmgr.h>
+#include <varatt.h>
 #ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
 #endif

I don't know how to properly wrap the fix so that it still compiles on older versions (where this new header is absent), so will just leave it here for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions