Refactor postgresql class (#1060)

* Convert postgresql.py into a package
* Factor out cancellable process into a separate class
* Factor out connection handler into a separate class
* Move postmaster into postgresql package
* Factor out pg_rewind into a separate class
* Factor out bootstrap into a separate class
* Factor out slots handler into a separate class
* Factor out postgresql config handler into a separate class
* Move callback_executor into postgresql package

This is just a careful refactoring, without code changes.
This commit is contained in:
Alexander Kukushkin
2019-05-21 16:02:47 +02:00
committed by GitHub
parent f1f2389146
commit a4bd6a9b4b
32 changed files with 2985 additions and 2720 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import unittest
from mock import Mock, patch
from patroni.callback_executor import CallbackExecutor
from patroni.postgresql.callback_executor import CallbackExecutor
class TestCallbackExecutor(unittest.TestCase):