File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -168,11 +168,16 @@ def create_extension(self):
168
168
cur .close ()
169
169
con .close ()
170
170
171
+ connstr = " "
172
+ for i in range (len (self .dsns )- 1 ):
173
+ connstr = connstr + "\" dbname=regression user=pg host=192.168.253." + str (i + 2 ) + "\" "
174
+ if (i < len (self .dsns ) - 2 ):
175
+ connstr = connstr + ", "
176
+
171
177
conn = psycopg2 .connect (self .dsns [0 ])
172
178
cur = conn .cursor ()
173
179
cur .execute ("select mtm.init_cluster($$%s$$, $${%s}$$);" %
174
- ("dbname=regression user=pg host=192.168.253.1" ,
175
- '"dbname=regression user=pg host=192.168.253.2", "dbname=regression user=pg host=192.168.253.3"' ))
180
+ ("dbname=regression user=pg host=192.168.253.1" , connstr ))
176
181
conn .commit ()
177
182
cur .close ()
178
183
conn .close ()
You can’t perform that action at this time.
0 commit comments