postgresql/contrib/pg_upgrade
Heikki Linnakangas a692ee5870 Replace SYSTEMQUOTEs with Windows-specific wrapper functions.
It's easy to forget using SYSTEMQUOTEs when constructing command strings
for system() or popen(). Even if we fix all the places missing it now, it is
bound to be forgotten again in the future. Introduce wrapper functions that
do the the extra quoting for you, and get rid of SYSTEMQUOTEs in all the
callers.

We previosly used SYSTEMQUOTEs in all the hard-coded command strings, and
this doesn't change the behavior of those. But user-supplied commands, like
archive_command, restore_command, COPY TO/FROM PROGRAM calls, as well as
pgbench's \shell, will now gain an extra pair of quotes. That is desirable,
but if you have existing scripts or config files that include an extra
pair of quotes, those might need to be adjusted.

Reviewed by Amit Kapila and Tom Lane
2014-05-05 16:07:40 +03:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
Makefile Fix contrib/pg_upgrade to clean all the cruft made during "make check". 2014-01-02 14:20:28 -05:00
TESTING Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
check.c Replace SYSTEMQUOTEs with Windows-specific wrapper functions. 2014-05-05 16:07:40 +03:00
controldata.c Replace SYSTEMQUOTEs with Windows-specific wrapper functions. 2014-05-05 16:07:40 +03:00
dump.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
exec.c Replace SYSTEMQUOTEs with Windows-specific wrapper functions. 2014-05-05 16:07:40 +03:00
file.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
function.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
info.c pg_upgrade: dramatically reduce memory consumption 2014-02-12 16:35:24 -05:00
option.c pg_upgrade: remove redundant include files 2014-04-16 13:27:07 -04:00
page.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
parallel.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_upgrade.c pg_upgrade: improve C comment about what old/new oids match 2014-03-05 10:43:45 -05:00
pg_upgrade.h pg_upgrade: use pg_usleep(); remove Windows workaround 2014-03-26 10:22:39 -04:00
relfilenode.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
server.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tablespace.c pg_upgrade: throw an error for non-existent tablespace directories 2014-04-17 11:42:21 -04:00
test.sh Revert "Secure Unix-domain sockets of "make check" temporary clusters." 2014-03-29 03:12:00 -04:00
util.c Adjust pg_upgrade for move of username lookup functions to /common 2014-01-10 20:56:47 -05:00
version.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
version_old_8_3.c Update copyright for 2014 2014-01-07 16:05:30 -05:00