Skip to content

Commit ad89eb3

Browse files
FIX: install pgvector package for old PG versions during update (#932)
1 parent 7b4839c commit ad89eb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/postgres.15.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ run:
110110
rm -fr /shared/postgres_data_new
111111
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
112112
apt-get update
113-
apt-get install -y postgresql-${PG_MAJOR_OLD}
113+
apt-get install -y postgresql-${PG_MAJOR_OLD} postgresql-${PG_MAJOR_OLD}-pgvector
114114
chown -R postgres:postgres /var/lib/postgresql/15
115115
/etc/init.d/postgresql stop
116116
rm -fr /shared/postgres_data/postmaster.pid

templates/postgres.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ run:
110110
rm -fr /shared/postgres_data_new
111111
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
112112
apt-get update
113-
apt-get install -y postgresql-${PG_MAJOR_OLD}
113+
apt-get install -y postgresql-${PG_MAJOR_OLD} postgresql-${PG_MAJOR_OLD}-pgvector
114114
chown -R postgres:postgres /var/lib/postgresql/15
115115
/etc/init.d/postgresql stop
116116
rm -fr /shared/postgres_data/postmaster.pid

0 commit comments

Comments
 (0)