pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). @ 2013-11-29 23:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2013-11-29 23:34 UTC (permalink / raw) To: pgsql-committers Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Ensure that the invocation command for postgres or pg_ctl runservice double-quotes the executable's pathname; failure to do this leads to trouble when the path contains spaces. Also, ensure that the path ends in ".exe" in both cases and uses backslashes rather than slashes as directory separators. The latter issue is reported to confuse some third-party tools such as Symantec Backup Exec. Also, rewrite the function to avoid buffer overrun issues by using a PQExpBuffer instead of a fixed-size static buffer. Combinations of very long executable pathnames and very long data directory pathnames could have caused trouble before, for example. Back-patch to all active branches, since this code has been like this for a long while. Naoya Anzai and Tom Lane, reviewed by Rajeev Rastogi Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/79193c75f8c78ff494f32cd7b7ee79d7166c225b Modified Files -------------- src/bin/pg_ctl/pg_ctl.c | 74 ++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 36 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). @ 2013-11-29 23:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2013-11-29 23:34 UTC (permalink / raw) To: pgsql-committers Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Ensure that the invocation command for postgres or pg_ctl runservice double-quotes the executable's pathname; failure to do this leads to trouble when the path contains spaces. Also, ensure that the path ends in ".exe" in both cases and uses backslashes rather than slashes as directory separators. The latter issue is reported to confuse some third-party tools such as Symantec Backup Exec. Also, rewrite the function to avoid buffer overrun issues by using a PQExpBuffer instead of a fixed-size static buffer. Combinations of very long executable pathnames and very long data directory pathnames could have caused trouble before, for example. Back-patch to all active branches, since this code has been like this for a long while. Naoya Anzai and Tom Lane, reviewed by Rajeev Rastogi Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/a9380b5c333043fc1ffc342475b3b1f2c021e962 Modified Files -------------- src/bin/pg_ctl/pg_ctl.c | 74 ++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 36 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). @ 2013-11-29 23:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2013-11-29 23:34 UTC (permalink / raw) To: pgsql-committers Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Ensure that the invocation command for postgres or pg_ctl runservice double-quotes the executable's pathname; failure to do this leads to trouble when the path contains spaces. Also, ensure that the path ends in ".exe" in both cases and uses backslashes rather than slashes as directory separators. The latter issue is reported to confuse some third-party tools such as Symantec Backup Exec. Also, rewrite the function to avoid buffer overrun issues by using a PQExpBuffer instead of a fixed-size static buffer. Combinations of very long executable pathnames and very long data directory pathnames could have caused trouble before, for example. Back-patch to all active branches, since this code has been like this for a long while. Naoya Anzai and Tom Lane, reviewed by Rajeev Rastogi Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/19af7d4f0314068fda7b392ccc1f9f7df50ac0a6 Modified Files -------------- src/bin/pg_ctl/pg_ctl.c | 74 ++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 36 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). @ 2013-11-29 23:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2013-11-29 23:34 UTC (permalink / raw) To: pgsql-committers Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Ensure that the invocation command for postgres or pg_ctl runservice double-quotes the executable's pathname; failure to do this leads to trouble when the path contains spaces. Also, ensure that the path ends in ".exe" in both cases and uses backslashes rather than slashes as directory separators. The latter issue is reported to confuse some third-party tools such as Symantec Backup Exec. Also, rewrite the function to avoid buffer overrun issues by using a PQExpBuffer instead of a fixed-size static buffer. Combinations of very long executable pathnames and very long data directory pathnames could have caused trouble before, for example. Back-patch to all active branches, since this code has been like this for a long while. Naoya Anzai and Tom Lane, reviewed by Rajeev Rastogi Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8c72b20e39a2f6e788020f9c6750e2c0a9bbb235 Modified Files -------------- src/bin/pg_ctl/pg_ctl.c | 74 ++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 36 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). @ 2013-11-29 23:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2013-11-29 23:34 UTC (permalink / raw) To: pgsql-committers Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Ensure that the invocation command for postgres or pg_ctl runservice double-quotes the executable's pathname; failure to do this leads to trouble when the path contains spaces. Also, ensure that the path ends in ".exe" in both cases and uses backslashes rather than slashes as directory separators. The latter issue is reported to confuse some third-party tools such as Symantec Backup Exec. Also, rewrite the function to avoid buffer overrun issues by using a PQExpBuffer instead of a fixed-size static buffer. Combinations of very long executable pathnames and very long data directory pathnames could have caused trouble before, for example. Back-patch to all active branches, since this code has been like this for a long while. Naoya Anzai and Tom Lane, reviewed by Rajeev Rastogi Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/4ab4e5c6bb04dc1fc747baed3d42d5aa2ea44dfa Modified Files -------------- src/bin/pg_ctl/pg_ctl.c | 74 ++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 36 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). @ 2013-11-29 23:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2013-11-29 23:34 UTC (permalink / raw) To: pgsql-committers Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Ensure that the invocation command for postgres or pg_ctl runservice double-quotes the executable's pathname; failure to do this leads to trouble when the path contains spaces. Also, ensure that the path ends in ".exe" in both cases and uses backslashes rather than slashes as directory separators. The latter issue is reported to confuse some third-party tools such as Symantec Backup Exec. Also, rewrite the function to avoid buffer overrun issues by using a PQExpBuffer instead of a fixed-size static buffer. Combinations of very long executable pathnames and very long data directory pathnames could have caused trouble before, for example. Back-patch to all active branches, since this code has been like this for a long while. Naoya Anzai and Tom Lane, reviewed by Rajeev Rastogi Branch ------ REL8_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6cb109a81289aec8c9078cc96fb721ff9e91d14d Modified Files -------------- src/bin/pg_ctl/pg_ctl.c | 76 +++++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 35 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2013-11-29 23:34 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2013-11-29 23:34 pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Tom Lane <tgl@sss.pgh.pa.us> 2013-11-29 23:34 pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Tom Lane <tgl@sss.pgh.pa.us> 2013-11-29 23:34 pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Tom Lane <tgl@sss.pgh.pa.us> 2013-11-29 23:34 pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Tom Lane <tgl@sss.pgh.pa.us> 2013-11-29 23:34 pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Tom Lane <tgl@sss.pgh.pa.us> 2013-11-29 23:34 pgsql: Fix assorted issues in pg_ctl's pgwin32_CommandLine(). Tom Lane <tgl@sss.pgh.pa.us>
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