From e29fc3aa1a7299b9126f31c43fccffca58d82d37 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 31 Jul 2025 19:59:27 -0700 Subject: [PATCH] Switched to PG_MODULE_MAGIC_EXT for Postgres 18+ [skip ci] --- src/vector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vector.c b/src/vector.c index 66db3d2..256d632 100644 --- a/src/vector.c +++ b/src/vector.c @@ -35,7 +35,11 @@ #define VECTOR_TARGET_CLONES #endif +#if PG_VERSION_NUM >= 180000 +PG_MODULE_MAGIC_EXT(.name = "vector", .version = "0.8.0"); +#else PG_MODULE_MAGIC; +#endif /* * Initialize index options and variables