Skip to content

Commit 54461b3

Browse files
committed
fix: missed a generated-optimizations instance
1 parent de788ac commit 54461b3

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Dockerfile-orioledb-17

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ RUN sed -i \
236236
# Remove items from postgresql.conf
237237
RUN sed -i 's/ timescaledb,//g;' "/etc/postgresql/postgresql.conf"
238238
#as of pg 16.4 + this db_user_namespace totally deprecated and will break the server if setting is present
239+
RUN sed -i 's/db_user_namespace = off/#db_user_namespace = off/g;' "/etc/postgresql/postgresql.conf"
239240
RUN sed -i 's/ timescaledb,//g; s/ plv8,//g; s/ postgis,//g; s/ pgrouting,//g' "/etc/postgresql-custom/supautils.conf"
240241
RUN sed -i 's/\(shared_preload_libraries.*\)'\''\(.*\)$/\1, orioledb'\''\2/' "/etc/postgresql/postgresql.conf"
241242
RUN echo "default_table_access_method = 'orioledb'" >> "/etc/postgresql/postgresql.conf"

ansible/files/database-optimizations.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Description=Postgresql optimizations
44
[Service]
55
Type=oneshot
66
# we do not want failures from these commands to cause downstream service startup to fail
7-
ExecStart=-/opt/supabase-admin-api optimize db --destination-config-file-path /etc/postgresql-custom/conf.d/generated_optimizations.conf
7+
ExecStart=-/opt/supabase-admin-api optimize db --destination-config-file-path /etc/postgresql-custom/conf.d/generated-optimizations.conf
88
ExecStart=-/opt/supabase-admin-api optimize pgbouncer --destination-config-file-path /etc/pgbouncer-custom/generated-optimizations.ini
99
User=adminapi
1010

ansible/files/postgres_prestart.sh.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ check_orioledb_enabled() {
1515
}
1616

1717
get_shared_buffers() {
18-
local opt_conf="/etc/postgresql-custom/conf.d/generated-optimizations.conf"
18+
local opt_conf="/etc/postgresql-custom/generated-optimizations.conf"
1919
if [ ! -f "$opt_conf" ]; then
2020
return 0
2121
fi

ansible/tasks/setup-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
group: 'postgres'
148148
mode: '0664'
149149
owner: 'postgres'
150-
path: "/etc/postgresql-custom/conf.d/{{ pg_config_item }}"
150+
path: "/etc/postgresql-custom/{{ pg_config_item }}"
151151
state: 'touch'
152152
loop:
153153
- 'custom-overrides.conf'

0 commit comments

Comments
 (0)