pgvector.git / summary / log / commit / refs
commit e29fc3aa1a7299b9126f31c43fccffca58d82d37
Author: Andrew Kane <andrew@ankane.org>
Date: Fri Aug 01 02:59:27 2025 +0000
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 66db3d2f..256d632a 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
[parent: 6ef7fccb5cd2]