pgsql: Teach pg_dump to quote reloption values safely.

Started by Tom Laneover 10 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Teach pg_dump to quote reloption values safely.

Commit c7e27becd2e6eb93 fixed this on the backend side, but we neglected
the fact that several code paths in pg_dump were printing reloptions
values that had not gotten massaged by ruleutils. Apply essentially the
same quoting logic in those places, too.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/aab4b73bdd52263c7c415cd1e0a246dbdeb7c667

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 162 +++++++++++++++++++++++++++++++++++----------
src/bin/pg_dump/pg_dump.h | 4 +-
2 files changed, 128 insertions(+), 38 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers