Skip to content

Commit 42be7c5

Browse files
committed
Add support for installing pgvector.
Only pgvector for PSQL16 and C9S, C10S, RHEL9, and RHEL10 are supported. Fixes #626 Closes #626 Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent a404bf5 commit 42be7c5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

specs/multispec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ specs:
8585
redhat_component: "postgresql-{{ spec.short }}-container"
8686
img_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
8787
pkgs: "postgresql{{ spec.short }}-server postgresql{{ spec.short }}-contrib postgresql{{ spec.short }}-upgrade"
88-
check_pkgs: "postgresql-server postgresql-contrib postgresql-upgrade"
88+
check_pkgs: "postgresql-server postgresql-contrib postgresql-upgrade pgvector"
8989

9090
version:
9191
"12":

src/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ RUN {{ spec.environment_setup }}
7171
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
7272
{% endif %}
7373
{% endif %}
74+
{% if spec.version == "16" %}
75+
{% if spec.prod in ["c9s", "rhel9"] %}
76+
INSTALL_PKGS="$INSTALL_PKGS pgvector" && \
77+
{% endif %}
78+
{% if spec.prod in ["c10s", "rhel10" ] %}
79+
PSQL_PKGS="$PSQL_PKGS postgresql16-pgvector" && \
80+
{% endif %}
81+
{% endif %}
7482
{% if spec.prod == "c10s" or spec.prod == "rhel10" %}
7583
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
7684
rpm -V $INSTALL_PKGS {{ spec.check_pkgs }} && \

0 commit comments

Comments
 (0)