Skip to content

Commit

Permalink
FIX: install pgvector package for old PG versions during update (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaniki-wairungu authored Jan 29, 2025
1 parent 7b4839c commit ad89eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/postgres.15.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/postgres.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad89eb3

Please sign in to comment.