(self,param_value)
Helper function to change synchronous_standby_names and signal postmaster
Helper function to change synchronous_standby_names and signal postmaster
Helper function to change synchronous_standby_names and signal postmaster
def set_synchronous_standby_names(self,param_value):
        """Helper function to change synchronous_standby_names and signal postmaster"""

        self.log.info("Changing synchronous_standby_names from %r to %r", self.synchronous_standby_names(), param_value)
        cf_params = dict()
        cf_params['synchronous_standby_names'] = param_value
        self.modify(cf_params)
        self.write()

        data_dir=self.walmgr.cf.getfile("master_data")
        self.log.info("Sending SIGHUP to postmaster")
        self.walmgr.signal_postmaster(data_dir, signal.SIGHUP)
def set_synchronous_standby_names ( self , param_value ) : self . log . info ( "Changing synchronous_standby_names from %r to %r" , self . synchronous_standby_names ( ) , param_value ) cf_params = dict ( ) cf_params [ 'synchronous_standby_names' ] = param_value self . modify ( cf_params ) self . write ( ) data_dir = self . walmgr . cf . getfile ( "master_data" ) self . log . info ( "Sending SIGHUP to postmaster" ) self . walmgr . signal_postmaster ( data_dir , signal . SIGHUP )