File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
testgres/plugins/pg_probackup2/pg_probackup2 Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -661,9 +661,13 @@ def set_archiving(
661
661
options ['archive_mode' ] = 'on'
662
662
663
663
if custom_archive_command is None :
664
- archive_command = " " .join (['exec' , f'"{ init_params .probackup_path } "' ,
664
+ archive_command = " " .join ([f'"{ init_params .probackup_path } "' ,
665
665
'archive-push' , * self .backup_dir .pb_args ])
666
- if os .name == "nt" :
666
+ if os .name == 'posix' :
667
+ # Dash produces a core dump when it gets a SIGQUIT from its
668
+ # child process so replace the shell with pg_probackup
669
+ archive_command = 'exec ' + archive_command
670
+ elif os .name == "nt" :
667
671
archive_command = archive_command .replace ("\\ " , "\\ \\ " )
668
672
archive_command += f' --instance={ instance } '
669
673
You can’t perform that action at this time.
0 commit comments