pgsql: Teach pg_dump to quote reloption values safely. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Teach pg_dump to quote reloption values safely.
Date
Msg-id E1aFWAZ-0004Mn-8S@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_1_STABLE

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

Modified Files
--------------
src/bin/pg_dump/pg_dump.c |  139 ++++++++++++++++++++++++++++++++++++---------
src/bin/pg_dump/pg_dump.h |    2 +-
2 files changed, 113 insertions(+), 28 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix overly-strict assertions in spgtextproc.c.
Next
From: Tom Lane
Date:
Subject: pgsql: Teach pg_dump to quote reloption values safely.