pgsql: Only quote libpq connection string values that need quoting. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Only quote libpq connection string values that need quoting.
Date
Msg-id E1UA2F1-00089G-3h@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2953cd6d17210935098c803c52c6df5b12a725b9

Modified Files
--------------
src/bin/pg_dump/pg_dumpall.c |   37 +++++++++++++++++++++++++++++++------
1 files changed, 31 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Add -d option to pg_dumpall, for specifying a connection string.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Fix markup typo