Bug#678936: postgresql-common: init.d status doesn't list clusters that are online but in recovery.

2012-06-25 Thread Gilbert Roulot
Package: postgresql-common Version: 130~bpo60+2 Severity: minor Hello, /etc/init.d/postgresql status doesn't list clusters that are online when they are in recovery, for example when they are slaves in a streaming replication setup. pg_lsclusters list the cluster: sudo pg_lsclusters -h 9.1

Bug#678936: postgresql-common: init.d status doesn't list clusters that are online but in recovery.

2012-06-25 Thread Christoph Berg
/etc/init.d/postgresql status doesn't list clusters that are online when they are in recovery, for example when they are slaves in a streaming replication setup. A simple replacement of ($4 == online) by (match($4, online)) solved my issue. Thanks for spotting, committed for the next