]> granicus.if.org Git - postgresql/commit
Only quote libpq connection string values that need quoting.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 25 Feb 2013 17:53:04 +0000 (19:53 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 25 Feb 2013 17:53:04 +0000 (19:53 +0200)
commit2953cd6d17210935098c803c52c6df5b12a725b9
treea9b1ebbfe0bf1db2365de90f92f52eaf8998c610
parent3dee636e0404885d07885d41c0d70e50c784f324
Only quote libpq connection string values that need quoting.

There's no harm in excessive quoting per se, but it makes the strings nicer
to read. The values can get quite unwieldy, when they're first quoted within
within single-quotes when included in the connection string, and then all
the single-quotes are escaped when the connection string is passed as a
shell argument.
src/bin/pg_dump/pg_dumpall.c