WAL functions cannot be executed in standby servers

Signed-off-by: Francisco Miguel Biete Banon <fbiete@gmail.com>
This commit is contained in:
Francisco Miguel Biete Banon 2023-09-01 18:06:01 +01:00 committed by GitHub
parent 5890879126
commit 955a978e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,7 @@ var queryOverrides = map[string][]OverrideQuery{
`
SELECT slot_name, database, active, pg_xlog_location_diff(pg_current_xlog_location(), restart_lsn)
FROM pg_replication_slots
WHERE pg_is_in_recovery() = False
`,
},
{
@ -89,6 +90,7 @@ var queryOverrides = map[string][]OverrideQuery{
`
SELECT slot_name, database, active, pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn)
FROM pg_replication_slots
WHERE pg_is_in_recovery() = False
`,
},
},