Optimize case when we don't have permanent logical slots (#2121)

The unnecessary call of SlotsHandler.process_permanent_slots() results in one additional query to `pg_replication_slots` view every HA loop.
This commit is contained in:
Alexander Kukushkin
2021-11-30 14:20:55 +01:00
committed by GitHub
parent 31d7540cc5
commit d24051c31c
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -71,6 +71,7 @@ Scenario: check API requests for the primary-replica pair in the pause mode
When I run patronictl.py restart batman postgres1 --force
Then I receive a response returncode 0
Then replication works from postgres0 to postgres1 after 20 seconds
And I sleep for 2 seconds
When I issue a GET request to http://127.0.0.1:8009/replica
Then I receive a response code 200
And I receive a response state running