Increased max dimensions for vector from 1024 to 16000 and increased max dimensions for index from 1024 to 2000

This commit is contained in:
Andrew Kane
2023-01-10 14:49:50 -08:00
parent 42d0cf1a25
commit 7b0b6a7875
6 changed files with 10 additions and 5 deletions

View File

@@ -23,7 +23,7 @@
#include "portability/instr_time.h"
#endif
#define IVFFLAT_MAX_DIM VECTOR_MAX_DIM
#define IVFFLAT_MAX_DIM 2000
/* Support functions */
#define IVFFLAT_DISTANCE_PROC 1

View File

@@ -3,7 +3,7 @@
#include "postgres.h"
#define VECTOR_MAX_DIM 1024
#define VECTOR_MAX_DIM 16000
#define VECTOR_SIZE(_dim) (offsetof(Vector, x) + sizeof(float)*(_dim))
#define DatumGetVector(x) ((Vector *) PG_DETOAST_DATUM(x))