Skip to content

Commit 5ce731b

Browse files
authored
fix: AIO - update platform defaults position on postgresql.conf to ensure overrides happen successfully (#1238)
1 parent 349cc83 commit 5ce731b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docker/all-in-one/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function setup_postgres {
101101
mv /etc/postgresql.schema.sql /docker-entrypoint-initdb.d/migrations/99-schema.sql
102102

103103
tar -xzvf "$INIT_PAYLOAD_PATH" -C / ./etc/postgresql-custom/pgsodium_root.key
104-
echo "include = '/etc/postgresql-custom/postgresql-platform-defaults.conf'" >>$PG_CONF
104+
sed -i "/# Automatically generated optimizations/i # Supabase Platform Defaults\ninclude = '/etc/postgresql-custom/platform-defaults.conf'\n" $PG_CONF
105105

106106
# TODO (darora): walg enablement is temporarily performed here until changes from https://github.com/supabase/postgres/pull/639 get picked up
107107
# other things will still be needed in the future (auth_delay config)

docker/all-in-one/etc/postgresql-custom/postgresql-platform-defaults.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# these get imported _after_ the user specified overrides
22
row_security = on
33
wal_level = logical
4-
max_wal_senders = 10
5-
max_replication_slots = 5
64
log_connections = on
75
statement_timeout = 120000
86
jit = off

0 commit comments

Comments
 (0)