From ad89eb3b10dbfe14e33558a08722cdca07b3e28c Mon Sep 17 00:00:00 2001 From: mwaniki-wairungu <137784966+mwaniki-wairungu@users.noreply.github.com> Date: Wed, 29 Jan 2025 18:32:39 +0300 Subject: [PATCH] FIX: install pgvector package for old PG versions during update (#932) --- templates/postgres.15.template.yml | 2 +- templates/postgres.template.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/postgres.15.template.yml b/templates/postgres.15.template.yml index 75103ce..5bc06f2 100644 --- a/templates/postgres.15.template.yml +++ b/templates/postgres.15.template.yml @@ -110,7 +110,7 @@ run: rm -fr /shared/postgres_data_new install -d -m 0755 -o postgres -g postgres /shared/postgres_data_new && sudo -u postgres /usr/lib/postgresql/15/bin/initdb -D /shared/postgres_data_new || exit 0 apt-get update - apt-get install -y postgresql-${PG_MAJOR_OLD} + apt-get install -y postgresql-${PG_MAJOR_OLD} postgresql-${PG_MAJOR_OLD}-pgvector chown -R postgres:postgres /var/lib/postgresql/15 /etc/init.d/postgresql stop rm -fr /shared/postgres_data/postmaster.pid diff --git a/templates/postgres.template.yml b/templates/postgres.template.yml index 75103ce..5bc06f2 100644 --- a/templates/postgres.template.yml +++ b/templates/postgres.template.yml @@ -110,7 +110,7 @@ run: rm -fr /shared/postgres_data_new install -d -m 0755 -o postgres -g postgres /shared/postgres_data_new && sudo -u postgres /usr/lib/postgresql/15/bin/initdb -D /shared/postgres_data_new || exit 0 apt-get update - apt-get install -y postgresql-${PG_MAJOR_OLD} + apt-get install -y postgresql-${PG_MAJOR_OLD} postgresql-${PG_MAJOR_OLD}-pgvector chown -R postgres:postgres /var/lib/postgresql/15 /etc/init.d/postgresql stop rm -fr /shared/postgres_data/postmaster.pid