mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Fixed compilation with Postgres 16 - fixes #61
This commit is contained in:
@@ -822,7 +822,7 @@ vector_accum(PG_FUNCTION_ARGS)
|
||||
if (newarr)
|
||||
{
|
||||
for (int i = 0; i < dim; i++)
|
||||
statedatums[i + 1] = Float8GetDatumFast(x[i]);
|
||||
statedatums[i + 1] = Float8GetDatumFast((double) x[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#if PG_VERSION_NUM >= 160000
|
||||
#include "varatt.h"
|
||||
#endif
|
||||
|
||||
#define VECTOR_MAX_DIM 16000
|
||||
|
||||
#define VECTOR_SIZE(_dim) (offsetof(Vector, x) + sizeof(float)*(_dim))
|
||||
|
||||
Reference in New Issue
Block a user