aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-02-10 10:49:58 +0900
committerMichael Paquier <michael@paquier.xyz>2020-02-10 10:49:58 +0900
commitbd54e7ace7d60a823d405348a65c9a28171072b7 (patch)
treec327e57f388522879d6bfd8f16cd521729c77097 /src/backend
parent8be0a55d392cc2701d1ffacc45d56a757cb03df0 (diff)
downloadpostgresql-bd54e7ace7d60a823d405348a65c9a28171072b7.tar.gz
postgresql-bd54e7ace7d60a823d405348a65c9a28171072b7.zip
pg_upgrade: Fix quoting of some arguments in pg_ctl command
The previous coding forgot to apply shell quoting to the socket directory and the data folder, leading to failures when running pg_upgrade. This refactors the code generating the pg_ctl command starting clusters to use a more correct shell quoting. Failures are easier to trigger in 12 and newer versions by using a value of --socketdir that includes quotes, but it is also possible to cause failures with quotes included in the default socket directory used by pg_upgrade or the data folders of the clusters involved in the upgrade. As 9.4 is going to be EOL'd with the next minor release, nobody is likely going to upgrade to it now so this branch is not included in the set of branches fixed. Author: Michael Paquier Reviewed-by: Álvaro Herrera, Noah Misch Backpatch-through: 9.5
Diffstat (limited to 'src/backend')
0 files changed, 0 insertions, 0 deletions