File tree Expand file tree Collapse file tree 11 files changed +8
-30
lines changed
Expand file tree Collapse file tree 11 files changed +8
-30
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,6 @@ COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /h
218218COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
219219
220220RUN sed -i \
221- -e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
222221 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
223222 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
224223 /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /h
222222COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
223223
224224RUN sed -i \
225- -e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
226225 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
227226 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
228227 /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /h
222222COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
223223
224224RUN sed -i \
225- -e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
226225 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
227226 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
228227 /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Description=Postgresql optimizations
44[Service]
55Type =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/generated-optimizations .conf
7+ ExecStart =-/opt/supabase-admin-api optimize db --destination-config-file-path /etc/postgresql-custom/conf.d/generated_optimizations .conf
88ExecStart =-/opt/supabase-admin-api optimize pgbouncer --destination-config-file-path /etc/pgbouncer-custom/generated-optimizations.ini
99User =adminapi
1010
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ check_orioledb_enabled() {
1515}
1616
1717get_shared_buffers () {
18- local opt_conf=" /etc/postgresql-custom/generated-optimizations .conf"
18+ local opt_conf=" /etc/postgresql-custom/conf.d/generated_optimizations .conf"
1919 if [ ! -f " $opt_conf " ]; then
2020 return 0
2121 fi
@@ -134,4 +134,4 @@ if [ $(locale -a | grep -c en_US.utf8) -eq 0 ]; then
134134 locale-gen
135135fi
136136
137- main
137+ main
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ listen_addresses = '*' # what IP address(es) to listen on;
6464#port = 5432 # (change requires restart)
6565#max_connections = 100 # (change requires restart)
6666#superuser_reserved_connections = 3 # (change requires restart)
67- # unix_socket_directories = '/tmp ' # comma-separated list of directories
67+ unix_socket_directories = '/var/run/postgresql ' # comma-separated list of directories
6868 # (change requires restart)
6969#unix_socket_group = '' # (change requires restart)
7070#unix_socket_permissions = 0777 # begin with 0 to use octal notation
@@ -752,11 +752,6 @@ jit_provider = 'llvmjit' # JIT library to use
752752#include_if_exists = '...' # include file only if it exists
753753#include = '...' # include file
754754
755- # Automatically generated optimizations
756- #include = '/etc/postgresql-custom/generated-optimizations.conf'
757- # User-supplied custom parameters, override any automatically generated ones
758- #include = '/etc/postgresql-custom/custom-overrides.conf'
759-
760755# supautils specific configurations
761756#include = '/etc/postgresql-custom/supautils.conf'
762757
Original file line number Diff line number Diff line change 147147 group : ' postgres'
148148 mode : ' 0664'
149149 owner : ' postgres'
150- path : " /etc/postgresql-custom/{{ pg_config_item }}"
150+ path : " /etc/postgresql-custom/conf.d {{ pg_config_item }}"
151151 state : ' touch'
152152 loop :
153- - ' custom-overrides .conf'
154- - ' generated-optimizations .conf'
153+ - ' custom_overrides .conf'
154+ - ' generated_optimizations .conf'
155155 loop_control :
156156 loop_var : ' pg_config_item'
157157
Original file line number Diff line number Diff line change 7575 state : ' directory'
7676 become : true
7777
78- - name : Include file for generated optimizations in postgresql.conf
79- ansible.builtin.replace :
80- path : ' /etc/postgresql/postgresql.conf'
81- regexp : " #include = '/etc/postgresql-custom/generated-optimizations.conf'"
82- replace : " include = '/etc/postgresql-custom/generated-optimizations.conf'"
83- become : true
84-
85- - name : Include file for custom overrides in postgresql.conf
86- ansible.builtin.replace :
87- path : ' /etc/postgresql/postgresql.conf'
88- regexp : " #include = '/etc/postgresql-custom/custom-overrides.conf'"
89- replace : " include = '/etc/postgresql-custom/custom-overrides.conf'"
90- become : true
91-
9278- name : Install Postgres exporter
9379 ansible.builtin.import_tasks :
9480 file : internal/postgres-exporter.yml
You can’t perform that action at this time.
0 commit comments