postgres_exporter/cmd/postgres_exporter
Francisco Miguel Biete Banon 69eb75f920
pg_replication_slots in standby ()
WAL functions cannot be executed in standby servers
```
ERROR:  recovery is in progress
HINT:  WAL control functions cannot be executed during recovery.
```

In PostgreSQL 16 replication slots persist in the standby servers.
This is also the case when using extensions like pg_failover_slots that transfer the slot information to the standby.

This condition will make those queries to return values only in the primary node avoiding the errors.

Co-authored-by: Jiří Čtvrtka <62988319+JiriCtvrtka@users.noreply.github.com>
Co-authored-by: Nurlan Moldomurov <nurlan.moldomurov@percona.com>
2024-01-10 08:09:48 +00:00
..
tests PMM-10820 exporter update () 2022-10-12 12:24:58 +03:00
datasource.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
main.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
namespace.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
percona_compatibility_test.go PMM-7 fix linters. () 2023-10-26 17:04:37 +03:00
percona_exporter.go PMM-7 fix linters. () 2023-10-26 17:04:37 +03:00
percona-reference-metrics.txt PMM-7806: add compatibility with percona pg exporter () 2022-09-06 12:37:50 +03:00
pg_setting_test.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
pg_setting.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
postgres_exporter_integration_test.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
postgres_exporter_test.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
postgres_exporter.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
probe.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
queries.go pg_replication_slots in standby () 2024-01-10 08:09:48 +00:00
server.go PMM-12154 pull upstream changes () 2023-10-26 12:59:42 +03:00
util.go Fix broken log-level for values other than debug. 2021-07-14 16:19:00 +05:30