supabase-postgres.git / summary / log / commit / refs
commit 5ce731b4169e00a4c53e5c9bb8926f5982ca156f
Author: Bruno Andrade <1145012+bmpandrade@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Date: Fri Sep 27 16:02:38 2024 +0000
fix: AIO - update platform defaults position on postgresql.conf to ensure overrides happen successfully (#1238)
docker/all-in-one/entrypoint.sh | 2 +-
.../all-in-one/etc/postgresql-custom/postgresql-platform-defaults.conf | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/docker/all-in-one/entrypoint.sh b/docker/all-in-one/entrypoint.sh
index 97e68a6a..0aff0b1e 100755
--- a/docker/all-in-one/entrypoint.sh
+++ b/docker/all-in-one/entrypoint.sh
@@ -101,7 +101,7 @@ function setup_postgres {
mv /etc/postgresql.schema.sql /docker-entrypoint-initdb.d/migrations/99-schema.sql
tar -xzvf "$INIT_PAYLOAD_PATH" -C / ./etc/postgresql-custom/pgsodium_root.key
- echo "include = '/etc/postgresql-custom/postgresql-platform-defaults.conf'" >>$PG_CONF
+ sed -i "/# Automatically generated optimizations/i # Supabase Platform Defaults\ninclude = '/etc/postgresql-custom/platform-defaults.conf'\n" $PG_CONF
# TODO (darora): walg enablement is temporarily performed here until changes from https://github.com/supabase/postgres/pull/639 get picked up
# other things will still be needed in the future (auth_delay config)
diff --git a/docker/all-in-one/etc/postgresql-custom/postgresql-platform-defaults.conf b/docker/all-in-one/etc/postgresql-custom/postgresql-platform-defaults.conf
index e62a1de8..51d34a13 100644
--- a/docker/all-in-one/etc/postgresql-custom/postgresql-platform-defaults.conf
+++ b/docker/all-in-one/etc/postgresql-custom/postgresql-platform-defaults.conf
@@ -1,8 +1,6 @@
# these get imported _after_ the user specified overrides
row_security = on
wal_level = logical
-max_wal_senders = 10
-max_replication_slots = 5
log_connections = on
statement_timeout = 120000
jit = off
[parent: 349cc83621bc]