@@ -499,13 +499,15 @@ def init(self, allow_streaming=False, fsync=False, initdb_params=[]):
499
499
500
500
return self
501
501
502
- def default_conf (self ,allow_streaming = True ,fsync = False ):
502
+ def default_conf (self ,allow_streaming = True ,fsync = False , log_statement = 'all' ):
503
503
"""
504
504
Apply default settings to this node.
505
505
506
506
Args:
507
507
allow_streaming: should this node add a hba entry for replication?
508
508
fsync: should this node use fsync to keep data safe?
509
+ log_statement: one of ('all', 'off', 'mod', 'ddl'), look at
510
+ postgresql docs for more information
509
511
510
512
Returns:
511
513
This instance of PostgresNode.
@@ -530,9 +532,10 @@ def default_conf(self, allow_streaming=True, fsync=False):
530
532
if not fsync :
531
533
conf .write ("fsync = off\n " )
532
534
533
- conf .write ("log_statement =all \n "
535
+ conf .write ("log_statement ={} \n "
534
536
"listen_addresses = '{}'\n "
535
- "port = {}\n " .format (self .host ,
537
+ "port = {}\n " .format (log_statement ,
538
+ self .host ,
536
539
self .port ))
537
540
538
541
if allow_streaming :