Skip to content

Commit ec2db1f

Browse files
[FIX] pgvector files: copy extension files to /local/ folder
pgvector library files are stored under /usr/share and /usr/lib, but postgres is looking for extension files under /usr/local/share and /usr/local/lib. With this change we move the extension files to the expected directories.
1 parent 4b63f77 commit ec2db1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ENV CERTS="{}" \
2020
RUN apk add --no-cache python3 py3-netifaces \
2121
&& if [ "${PG_MAJOR:-0}" -ge 12 ]; then \
2222
apk add --no-cache postgresql-pgvector; \
23+
cp /usr/share/postgresql/extension/vector* /usr/local/share/postgresql/extension/; \
24+
cp /usr/lib/postgresql17/vector.so /usr/local/lib/postgresql/; \
2325
fi \
2426
&& mkdir -p /etc/postgres \
2527
&& chmod a=rwx /etc/postgres

0 commit comments

Comments
 (0)