Fix replication_slot query all supported versions
Signed-off-by: Филатов Дмитрий <d.filatov@2gis.ru>
This commit is contained in:
committed by
Филатов Дмитрий
parent
e43b9767f9
commit
29f6fa1891
@@ -430,7 +430,14 @@ var queryOverrides = map[string][]OverrideQuery{
|
||||
|
||||
"pg_replication_slots": {
|
||||
{
|
||||
semver.MustParseRange(">=9.4.0"),
|
||||
semver.MustParseRange(">=9.4.0 <10.0.0"),
|
||||
`
|
||||
SELECT slot_name, database, active, pg_xlog_location_diff(pg_current_xlog_location(), restart_lsn)
|
||||
FROM pg_replication_slots
|
||||
`,
|
||||
},
|
||||
{
|
||||
semver.MustParseRange(">=10.0.0"),
|
||||
`
|
||||
SELECT slot_name, database, active, pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn)
|
||||
FROM pg_replication_slots
|
||||
|
||||
Reference in New Issue
Block a user