postgresql/src/fe_utils
Tom Lane a00c583147 Make initdb's suggested "pg_ctl start" command line more reliable.
The original coding here was not nearly careful enough about quoting
special characters, and it didn't get corner cases right for constructing
the pg_ctl path either.  Use join_path_components() and appendShellString()
to do it honestly, so that the string will more likely work if blindly
copied-and-pasted.

While at it, teach appendShellString() not to quote strings that clearly
don't need it, so that the output from initdb doesn't become uglier than
it was before in typical cases where quoting is not needed.

Ryan Murphy, reviewed by Michael Paquier and myself

Discussion: <CAHeEsBeAe1FeBypT3E8R1ZVZU0e8xv3A-7BHg6bEOi=jZny2Uw@mail.gmail.com>
2016-08-20 15:05:25 -04:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
Makefile Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
mbprint.c Move psql's print.c and mbprint.c into src/fe_utils. 2016-03-24 18:27:28 -04:00
print.c Support \crosstabview in psql 2016-04-08 20:23:18 -03:00
psqlscan.l Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
simple_list.c Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
string_utils.c Make initdb's suggested "pg_ctl start" command line more reliable. 2016-08-20 15:05:25 -04:00