Skip to content

Commit

Permalink
Enabled logical replication by default.
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Nov 14, 2024
1 parent 4e9ae7e commit 0723a50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 16.4/config/postgres.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

export POSTGRES_ARGS=${POSTGRES_ARGS:-''}
# Enable logical replication by default. This allows tools like Debezium
# directly to add an replication slot to stream events.
export POSTGRES_ARGS=${POSTGRES_ARGS:-'-c wal_level=logical'}

exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS}
4 changes: 3 additions & 1 deletion 17.0/config/postgres.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

export POSTGRES_ARGS=${POSTGRES_ARGS:-''}
# Enable logical replication by default. This allows tools like Debezium
# directly to add an replication slot to stream events.
export POSTGRES_ARGS=${POSTGRES_ARGS:-'-c wal_level=logical'}

exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS}
4 changes: 3 additions & 1 deletion config/postgres.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

export POSTGRES_ARGS=${POSTGRES_ARGS:-''}
# Enable logical replication by default. This allows tools like Debezium
# directly to add an replication slot to stream events.
export POSTGRES_ARGS=${POSTGRES_ARGS:-'-c wal_level=logical'}

exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS}

0 comments on commit 0723a50

Please sign in to comment.