File tree 6 files changed +7
-12
lines changed
6 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 30
30
PostgresNode(name='...', port=..., base_dir='...')
31
31
[(3,)]
32
32
"""
33
- from defaults import default_username
34
33
from .node import PostgresNode
35
34
36
35
Original file line number Diff line number Diff line change 4
4
5
5
from shutil import rmtree , copytree
6
6
from six import raise_from
7
- from tempfile import mkdtemp
8
7
9
- from os_ops import OsOperations
10
8
from .enums import XLogMethod
11
9
12
10
from .consts import \
Original file line number Diff line number Diff line change 1
1
# coding: utf-8
2
2
3
- import io
4
3
import os
5
4
6
- from shutil import copytree
7
5
from six import raise_from
8
6
9
- from os_ops import OsOperations
7
+ from . os_ops import OsOperations
10
8
from .config import testgres_config
11
9
12
10
from .consts import XLOG_CONTROL_FILE
Original file line number Diff line number Diff line change 1
1
# coding: utf-8
2
- from os_ops import OsOperations
3
2
4
3
# we support both pg8000 and psycopg2
5
4
try :
Original file line number Diff line number Diff line change 12
12
import subprocess
13
13
import time
14
14
15
- from os_ops import OsOperations
16
15
17
16
try :
18
17
from collections .abc import Iterable
102
101
clean_on_error
103
102
104
103
from .backup import NodeBackup
104
+ from .os_ops import OsOperations
105
105
106
106
InternalError = pglib .InternalError
107
107
ProgrammingError = pglib .ProgrammingError
@@ -1606,8 +1606,10 @@ def make_simple(
1606
1606
set_replication = False ,
1607
1607
ptrack_enable = False ,
1608
1608
initdb_params = [],
1609
- pg_options = {}):
1610
-
1609
+ pg_options = {},
1610
+ checksum = True ):
1611
+ if checksum and '--data-checksums' not in initdb_params :
1612
+ initdb_params .append ('--data-checksums' )
1611
1613
node = self .make_empty (base_dir )
1612
1614
node .init (
1613
1615
initdb_params = initdb_params , allow_streaming = set_replication )
Original file line number Diff line number Diff line change 1
- import base64
2
1
import getpass
3
2
import os
4
3
import shutil
15
14
except ImportError :
16
15
raise ImportError ("You must have psycopg2 or pg8000 modules installed" )
17
16
18
- from defaults import default_username
17
+ from testgres . defaults import default_username
19
18
from testgres .logger import log
20
19
21
20
import paramiko
You can’t perform that action at this time.
0 commit comments