@@ -129,9 +129,10 @@ class PostgresNode_Base(object):
129
129
130
130
def __init__ (self , os_ops : OsOperations , name = None , port = None , bin_dir = None , prefix = None ):
131
131
"""
132
- PostgresNode constructor.
132
+ PostgresNode_Base constructor.
133
133
134
134
Args:
135
+ os_ops: OS operations object.
135
136
name: node's application name.
136
137
port: port to accept connections.
137
138
bin_dir: path to node's binary directory.
@@ -648,7 +649,7 @@ def init(self, initdb_params=None, cached=True, **kwargs):
648
649
allow_streaming: should this node add a hba entry for replication?
649
650
650
651
Returns:
651
- This instance of :class:`.PostgresNode `
652
+ This instance of :class:`.PostgresNode_Base `
652
653
"""
653
654
654
655
# initialize this PostgreSQL node
@@ -682,7 +683,7 @@ def default_conf(self,
682
683
log_statement: one of ('all', 'off', 'mod', 'ddl').
683
684
684
685
Returns:
685
- This instance of :class:`.PostgresNode `.
686
+ This instance of :class:`.PostgresNode_Base `.
686
687
"""
687
688
688
689
postgres_conf = os .path .join (self .data_dir , PG_CONF_FILE )
@@ -779,7 +780,7 @@ def append_conf(self, line='', filename=PG_CONF_FILE, **kwargs):
779
780
**kwargs: named config options.
780
781
781
782
Returns:
782
- This instance of :class:`.PostgresNode `.
783
+ This instance of :class:`.PostgresNode_Base `.
783
784
784
785
Examples:
785
786
>>> append_conf(fsync=False)
@@ -916,7 +917,7 @@ def start(self, params=[], wait=True):
916
917
wait: wait until operation completes.
917
918
918
919
Returns:
919
- This instance of :class:`.PostgresNode `.
920
+ This instance of :class:`.PostgresNode_Base `.
920
921
"""
921
922
922
923
assert __class__ ._C_MAX_START_ATEMPTS > 1
@@ -1009,7 +1010,7 @@ def stop(self, params=[], wait=True):
1009
1010
wait: If True, waits until the operation is complete. Defaults to True.
1010
1011
1011
1012
Returns:
1012
- This instance of :class:`.PostgresNode `.
1013
+ This instance of :class:`.PostgresNode_Base `.
1013
1014
"""
1014
1015
if not self .is_started :
1015
1016
return self
@@ -1051,7 +1052,7 @@ def restart(self, params=[]):
1051
1052
params: additional arguments for pg_ctl.
1052
1053
1053
1054
Returns:
1054
- This instance of :class:`.PostgresNode `.
1055
+ This instance of :class:`.PostgresNode_Base `.
1055
1056
"""
1056
1057
1057
1058
_params = [
@@ -1083,7 +1084,7 @@ def reload(self, params=[]):
1083
1084
params: additional arguments for pg_ctl.
1084
1085
1085
1086
Returns:
1086
- This instance of :class:`.PostgresNode `.
1087
+ This instance of :class:`.PostgresNode_Base `.
1087
1088
"""
1088
1089
1089
1090
_params = [
@@ -1104,7 +1105,7 @@ def promote(self, dbname=None, username=None):
1104
1105
needed.
1105
1106
1106
1107
Returns:
1107
- This instance of :class:`.PostgresNode `.
1108
+ This instance of :class:`.PostgresNode_Base `.
1108
1109
"""
1109
1110
1110
1111
_params = [
@@ -1173,7 +1174,7 @@ def cleanup(self, max_attempts=3, full=False):
1173
1174
full: clean full base dir
1174
1175
1175
1176
Returns:
1176
- This instance of :class:`.PostgresNode `.
1177
+ This instance of :class:`.PostgresNode_Base `.
1177
1178
"""
1178
1179
1179
1180
self ._try_shutdown (max_attempts )
@@ -1534,13 +1535,13 @@ def set_synchronous_standbys(self, standbys):
1534
1535
"""
1535
1536
Set standby synchronization options. This corresponds to
1536
1537
`synchronous_standby_names <https://www.postgresql.org/docs/current/static/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES>`_
1537
- option. Note that :meth:`~.PostgresNode .reload` or
1538
- :meth:`~.PostgresNode .restart` is needed for changes to take place.
1538
+ option. Note that :meth:`~.PostgresNode_Base .reload` or
1539
+ :meth:`~.PostgresNode_Base .restart` is needed for changes to take place.
1539
1540
1540
1541
Args:
1541
1542
standbys: either :class:`.First` or :class:`.Any` object specifying
1542
1543
synchronization parameters or just a plain list of
1543
- :class:`.PostgresNode `s replicas which would be equivalent
1544
+ :class:`.PostgresNode_Base `s replicas which would be equivalent
1544
1545
to passing ``First(1, <list>)``. For PostgreSQL 9.5 and below
1545
1546
it is only possible to specify a plain list of standbys as
1546
1547
`FIRST` and `ANY` keywords aren't supported.
@@ -1700,7 +1701,7 @@ def pgbench_init(self, **kwargs):
1700
1701
Sets initialize=True.
1701
1702
1702
1703
Returns:
1703
- This instance of :class:`.PostgresNode `.
1704
+ This instance of :class:`.PostgresNode_Base `.
1704
1705
"""
1705
1706
1706
1707
self .pgbench_run (initialize = True , ** kwargs )
@@ -1915,7 +1916,7 @@ def upgrade_from(self, old_node, options=None, expect_error=False):
1915
1916
Upgrade this node from an old node using pg_upgrade.
1916
1917
1917
1918
Args:
1918
- old_node: An instance of PostgresNode representing the old node .
1919
+ old_node: A result of command operation .
1919
1920
"""
1920
1921
if not os .path .exists (old_node .data_dir ):
1921
1922
raise Exception ("Old node must be initialized" )
0 commit comments