Skip to content

Commit 0b231e6

Browse files
(#441) get_pg_node_state is rewritten
1 parent c5850bb commit 0b231e6

2 files changed

Lines changed: 191 additions & 158 deletions

File tree

‎src/consts.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# binary names
44
BINARY_NAME__POSTGRES = "postgres"
5+
BINARY_NAME__PG_CTL = "pg_ctl"
56

67
# names for dirs in base_dir
78
DATA_DIR = "data"
@@ -44,5 +45,7 @@
4445
LOGICAL_REPL_MAX_CATCHUP_ATTEMPTS = 60
4546

4647
PG_CTL__STATUS__OK = 0
48+
49+
PG_CTL__STATUS__FAILED = 1
4750
PG_CTL__STATUS__NODE_IS_STOPPED = 3
4851
PG_CTL__STATUS__BAD_DATADIR = 4

0 commit comments

Comments
 (0)