Deal with paths containing \ and spaces in basebackup_to_shell tests

Andres Freund <andres@anarazel.de>

Commit: 1ab07198363744eea5620d964570e674dc7eeb52
Author: Andres Freund <andres@anarazel.de>
Date: 2022-07-18T17:21:55Z
Releases: 15.0
Deal with paths containing \ and spaces in basebackup_to_shell tests

As $gzip is embedded in postgresql.conf \ needs to be escaped, otherwise guc.c
will take it as a string escape. Similarly, if "$gzip" contains spaces, the
prior incantation will fail. Both of these are common on windows.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/ce1b6eb3-5736-6f38-9775-b7020128b8d8@enterprisedb.com
Backpatch: 15-, where the test was added in 027fa0fd726

Files

PathChange+/−
contrib/basebackup_to_shell/t/001_basic.pl modified +7 −4

Discussion