Skip to content

Commit

Permalink
fix: pgvector installation issue
Browse files Browse the repository at this point in the history
Port fix of c7ca7f05 from pgvector repo. Fix missing sql script
installation.
  • Loading branch information
mrdrivingduck authored and polardb-bot[bot] committed Dec 27, 2024
1 parent 7ca25d4 commit a65f20c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions external/pgvector/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ EXTENSION = vector
EXTVERSION = 0.6.2

MODULE_big = vector
DATA = $(wildcard sql/*--*.sql)
DATA = $(wildcard sql/*--*--*.sql)
DATA_built = sql/$(EXTENSION)--$(EXTVERSION).sql
OBJS = src/hnsw.o src/hnswbuild.o src/hnswinsert.o src/hnswscan.o src/hnswutils.o src/hnswvacuum.o src/ivfbuild.o src/ivfflat.o src/ivfinsert.o src/ivfkmeans.o src/ivfscan.o src/ivfutils.o src/ivfvacuum.o src/vector.o
HEADERS = src/vector.h

Expand Down Expand Up @@ -41,8 +42,6 @@ all: sql/$(EXTENSION)--$(EXTVERSION).sql
sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
cp $< $@

# EXTRA_CLEAN = sql/$(EXTENSION)--$(EXTVERSION).sql

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
Expand Down

0 comments on commit a65f20c

Please sign in to comment.