File tree Expand file tree Collapse file tree 20 files changed +31
-65
lines changed
admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 20 files changed +31
-65
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,9 @@ COPY --from=walg /tmp/wal-g /usr/local/bin/
158158COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql.conf.j2 /etc/postgresql/postgresql.conf
159159COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_hba.conf.j2 /etc/postgresql/pg_hba.conf
160160COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_ident.conf.j2 /etc/postgresql/pg_ident.conf
161- COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout-log.conf /etc/postgresql-custom/00-logging.conf
162- COPY --chown=postgres:postgres ansible/files/postgresql_config/autoexplain.conf /etc/postgresql-custom/auto_explain.conf
163- COPY --chown=postgres:postgres ansible/files/postgresql_config/pgcron.conf /etc/postgresql-custom/pg_cron.conf
164- COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/05-supautils.conf
161+ COPY --chown=postgres:postgres ansible/files/postgresql_config/conf.d /etc/postgresql-custom/
165162COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
166163COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/bin/pgsodium_getkey.sh
167- COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_read_replica.conf.j2 /etc/postgresql-custom/04-read-replica.conf
168- COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.j2 /etc/postgresql-custom/03-wal-g.conf
169164COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
170165COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
171166
Original file line number Diff line number Diff line change @@ -162,14 +162,9 @@ COPY --from=walg /tmp/wal-g /usr/local/bin/
162162COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql.conf.j2 /etc/postgresql/postgresql.conf
163163COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_hba.conf.j2 /etc/postgresql/pg_hba.conf
164164COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_ident.conf.j2 /etc/postgresql/pg_ident.conf
165- COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout-log.conf /etc/postgresql-custom/00-logging.conf
166- COPY --chown=postgres:postgres ansible/files/postgresql_config/autoexplain.conf /etc/postgresql-custom/auto_explain.conf
167- COPY --chown=postgres:postgres ansible/files/postgresql_config/pgcron.conf /etc/postgresql-custom/pg_cron.conf
168- COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/05-supautils.conf
165+ COPY --chown=postgres:postgres ansible/files/postgresql_config/conf.d /etc/postgresql-custom/
169166COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
170167COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/bin/pgsodium_getkey.sh
171- COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_read_replica.conf.j2 /etc/postgresql-custom/04-read-replica.conf
172- COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.j2 /etc/postgresql-custom/03-wal-g.conf
173168COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
174169COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
175170
Original file line number Diff line number Diff line change @@ -162,14 +162,9 @@ COPY --from=walg /tmp/wal-g /usr/local/bin/
162162COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql.conf.j2 /etc/postgresql/postgresql.conf
163163COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_hba.conf.j2 /etc/postgresql/pg_hba.conf
164164COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_ident.conf.j2 /etc/postgresql/pg_ident.conf
165- COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout-log.conf /etc/postgresql-custom/00-logging.conf
166- COPY --chown=postgres:postgres ansible/files/postgresql_config/autoexplain.conf /etc/postgresql-custom/auto_explain.conf
167- COPY --chown=postgres:postgres ansible/files/postgresql_config/pgcron.conf /etc/postgresql-custom/pg_cron.conf
168- COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/05-supautils.conf
165+ COPY --chown=postgres:postgres ansible/files/postgresql_config/conf.d /etc/postgresql-custom/
169166COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
170167COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/bin/pgsodium_getkey.sh
171- COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_read_replica.conf.j2 /etc/postgresql-custom/04-read-replica.conf
172- COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.j2 /etc/postgresql-custom/03-wal-g.conf
173168COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
174169COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
175170
Original file line number Diff line number Diff line change @@ -515,11 +515,11 @@ EOF
515515 mkdir -p " $MOUNT_POINT /conf"
516516 cp -R /etc/postgresql-custom/* " $MOUNT_POINT /conf/"
517517 # removing supautils config as to allow the latest one provided by the latest image to be used
518- rm -f " $MOUNT_POINT /conf/05-supautils.conf" || true
518+ rm -f " $MOUNT_POINT /conf/conf.d/ 05-supautils.conf" || true
519519 rm -rf " $MOUNT_POINT /conf/extension-custom-scripts" || true
520520
521521 # removing wal-g config as to allow it to be explicitly enabled on the new instance
522- rm -f " $MOUNT_POINT /conf/wal-g.conf"
522+ rm -f " $MOUNT_POINT /conf/conf.d/03- wal-g.conf"
523523
524524 # copy sql files generated by pg_upgrade
525525 echo " 12. Copying sql files generated by pg_upgrade"
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/01-generated-optimizations.conf
7+ ExecStart=-/opt/supabase-admin-api optimize db --destination-config-file-path /etc/postgresql-custom/conf.d/ 01-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/01-generated-optimizations.conf"
18+ local opt_conf=" /etc/postgresql-custom/conf.d/ 01-generated-optimizations.conf"
1919 if [ ! -f " $opt_conf " ]; then
2020 return 0
2121 fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments