pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
6+ messages / 1 participants
[nested] [flat]

* pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
@ 2020-02-10 01:51  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-02-10 01:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d1c0b6132839e496eea73383813a127833af72f1

Modified Files
--------------
src/bin/pg_upgrade/server.c | 96 +++++++++++++++++++++++++++++++--------------
1 file changed, 67 insertions(+), 29 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
@ 2020-02-10 01:51  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-02-10 01:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7bb710d8505629725a830a13eeeedd521b1bbebb

Modified Files
--------------
src/bin/pg_upgrade/server.c | 96 +++++++++++++++++++++++++++++++--------------
1 file changed, 67 insertions(+), 29 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
@ 2020-02-10 01:51  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-02-10 01:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a2687d0bdc6c9250d1b7710fe43cf10af4beb895

Modified Files
--------------
src/bin/pg_upgrade/server.c | 96 +++++++++++++++++++++++++++++++--------------
1 file changed, 67 insertions(+), 29 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
@ 2020-02-10 01:51  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-02-10 01:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2f2c3e62757d227635873939240f87daa836d380

Modified Files
--------------
src/bin/pg_upgrade/server.c | 94 +++++++++++++++++++++++++++++++--------------
1 file changed, 66 insertions(+), 28 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
@ 2020-02-10 01:51  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-02-10 01:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/770eca3adfe49bb531bfcba39e8061ce7f8fc534

Modified Files
--------------
src/bin/pg_upgrade/server.c | 96 +++++++++++++++++++++++++++++++--------------
1 file changed, 67 insertions(+), 29 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
@ 2020-02-10 01:51  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-02-10 01:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bd54e7ace7d60a823d405348a65c9a28171072b7

Modified Files
--------------
src/bin/pg_upgrade/server.c | 94 +++++++++++++++++++++++++++++++--------------
1 file changed, 66 insertions(+), 28 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-02-10 01:51 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 01:51 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command Michael Paquier <michael@paquier.xyz>
2020-02-10 01:51 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command Michael Paquier <michael@paquier.xyz>
2020-02-10 01:51 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command Michael Paquier <michael@paquier.xyz>
2020-02-10 01:51 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command Michael Paquier <michael@paquier.xyz>
2020-02-10 01:51 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command Michael Paquier <michael@paquier.xyz>
2020-02-10 01:51 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox