Skip to content

Commit c1cce03

Browse files
author
Sameer Naik
committed
disable trigger_file option from recovery.conf
Triggering of a slave to stop replication and enable writing works. However if a second slave (with data persistence) is reconfigured to use the first slave (triggered) as the master, the second slave cannot replicate the data. At the moment the only way to convert a slave to a master is to stop it and start it as a master in which case the above issue is not seen. To avoid users from trying to trigger a slave, we removed the config altogether until the issue can be resolved.
1 parent ba9d02e commit c1cce03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ configure_recovery() {
261261
exec_as_postgres touch ${PG_RECOVERY_CONF}
262262
( echo "standby_mode = 'on'";
263263
echo "primary_conninfo = 'host=${REPLICATION_HOST} port=${REPLICATION_PORT} user=${REPLICATION_USER} password=${REPLICATION_PASS} sslmode=${REPLICATION_SSLMODE}'";
264-
echo "trigger_file = '/tmp/postgresql.trigger'" ) > ${PG_RECOVERY_CONF}
264+
) > ${PG_RECOVERY_CONF}
265265
else
266266
set_recovery_param "host" "${REPLICATION_HOST}"
267267
set_recovery_param "port" "${REPLICATION_PORT}"

0 commit comments

Comments
 (0)