Update check to support older pg versions
The `primary_conninfo` setting is not available in Postgres Versions 10
and 11. This change updates the test to use a more general check that
works in all versions
@@ -16,7 +16,7 @@ commands:
--file=- <<'SQL'
DO $$
BEGIN
- ASSERT pg_is_in_recovery(), 'expected replica';
- ASSERT current_setting('primary_conninfo') <> '', 'expected streaming';
+ PERFORM * FROM pg_stat_wal_receiver WHERE status = 'streaming';
+ ASSERT FOUND, 'expected streaming replication';
END $$
SQL
