allow building the cartridge against PostgreSQL 16 (#6580)

This commit is contained in:
Paolo Tosco
2023-08-10 14:18:33 +02:00
committed by greg landrum
parent 20a759c8b7
commit f56db7ea76

View File

@@ -39,6 +39,14 @@ extern "C" {
#endif
#include <postgres.h>
#ifdef PG_VERSION_NUM
#if PG_VERSION_NUM >= 160000
#include <varatt.h>
#ifndef Abs
#define Abs(x) ((x) >= 0 ? (x) : -(x))
#endif
#endif
#endif
typedef bytea Mol;