diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-05-20 19:34:27 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-05-20 19:41:45 +0300 |
commit | 30b5ede7157e34e77c7914b8ecfd55aa8da6edc3 (patch) | |
tree | ecf04e12f05ad09c6790798d493f07f817c5dd63 /src/backend/access/gist/gistget.c | |
parent | 2af0971f35a4a7b87312b83782d9bb0cc6a40ad0 (diff) | |
download | postgresql-30b5ede7157e34e77c7914b8ecfd55aa8da6edc3.tar.gz |
Fix escaping in generated recovery.conf file.
In the primary_conninfo line that "pg_basebackup -R" generates, single
quotes in parameter values need to be escaped into \\'; the libpq parser
requires the quotes to be escaped into \', and recovery.conf parser requires
the \ to be escaped into \\.
Also, don't quote parameter values unnecessarily, to make the connection
string prettier. Most options in a libpq connection string don't need
quoting.
Reported by Hari Babu, closer analysis by Zoltan Boszormenyi, although I
didn't use his patch.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions