Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/files/database-optimizations.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description=Postgresql optimizations

[Service]
Type=oneshot
EnvironmentFile=/etc/environment.d/postgresql.env
# we do not want failures from these commands to cause downstream service startup to fail
ExecStart=-/opt/supabase-admin-api optimize db --destination-config-file-path /etc/postgresql-custom/generated-optimizations.conf
ExecStart=-/opt/supabase-admin-api optimize pgbouncer --destination-config-file-path /etc/pgbouncer-custom/generated-optimizations.ini
Expand Down
5 changes: 5 additions & 0 deletions ansible/tasks/stage2-setup-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
line: 'ORIOLEDB_ENABLED=true'
path: '/etc/environment'

- name: Add ORIOLEDB_ENABLED environment variable to postgresql.env
ansible.builtin.lineinfile:
line: 'ORIOLEDB_ENABLED=true'
path: '/etc/environment.d/postgresql.env'

- name: Execute things when stage2
when: stage2
become: true
Expand Down
6 changes: 3 additions & 3 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ postgres_major:
# This is the source of truth for Postgres versions used in the Dockerfiles, and
# is used to derive image tags and base images in the release matrix.
postgres_release:
postgresorioledb-17: "17.9.0.014-orioledb"
postgres17: "17.6.1.161"
postgres15: "15.14.1.161"
postgresorioledb-17: "17.9.0.015-orioledb"
postgres17: "17.6.1.162"
postgres15: "15.14.1.162"
# Docker release matrix — base images built first, layered images built on top.
# tag and base_tag are derived at build time from postgres_release via release_key.
# tag_suffix is appended to the release version to form the final image tag.
Expand Down
Loading