File tree Expand file tree Collapse file tree 10 files changed +26
-9
lines changed
Expand file tree Collapse file tree 10 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ 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" \
221222 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
222223 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
223224 /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ 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" \
225226 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
226227 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
227228 /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ 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" \
225226 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
226227 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
227228 /etc/postgresql/postgresql.conf && \
File renamed without changes.
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/conf.d/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
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 = '/var/run/postgresql ' # comma-separated list of directories
67+ # unix_socket_directories = '/tmp ' # 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
Original file line number Diff line number Diff line change 22Description =PostgreSQL database server
33Documentation =man:postgres(1)
44{% if supabase_internal is defined %}
5- Requires =database_optimizations .service
6- After =database_optimizations .service
5+ Requires =database-optimizations .service
6+ After =database-optimizations .service
77{% endif %}
88
99[Service]
Original file line number Diff line number Diff line change 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 :
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
276276 dest : " /etc/systemd/system/{{ systemd_svc_item | basename }}"
277277 src : " files/{{ systemd_svc_item }}"
278278 loop :
279- - ' database_optimizations .service'
279+ - ' database-optimizations .service'
280280 - ' postgresql_config/postgresql.service'
281281 loop_control :
282282 loop_var : ' systemd_svc_item'
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+
7892- name : Install Postgres exporter
7993 ansible.builtin.import_tasks :
8094 file : internal/postgres-exporter.yml
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ listen_addresses = '*' # what IP address(es) to listen on;
6262#port = @PGSQL_DEFAULT_PORT@ # (change requires restart)
6363max_connections = 100 # (change requires restart)
6464#superuser_reserved_connections = 3 # (change requires restart)
65- unix_socket_directories = '/var/run/postgresql ' # comma-separated list of directories
65+ unix_socket_directories = '/tmp ' # comma-separated list of directories
6666 # (change requires restart)
6767#unix_socket_group = '' # (change requires restart)
6868#unix_socket_permissions = 0777 # begin with 0 to use octal notation
You can’t perform that action at this time.
0 commit comments