Skip to content

Commit

Permalink
fix: AIO - update platform defaults position on postgresql.conf to en…
Browse files Browse the repository at this point in the history
…sure overrides happen successfully (#1238)
  • Loading branch information
bmpandrade authored Sep 27, 2024
1 parent 349cc83 commit 5ce731b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion docker/all-in-one/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5ce731b

Please sign in to comment.