pgsql: Teach pg_dump to quote reloption values safely.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach pg_dump to quote reloption values safely.
Date: 2016-01-03 00:05:11
Message-ID: E1aFWAZ-0004Mk-8H@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1eb515ad7c1295099b252a58d71183e53ce2f818

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 156 +++++++++++++++++++++++++++++++++++----------
src/bin/pg_dump/pg_dump.h | 2 +-
2 files changed, 124 insertions(+), 34 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-01-03 18:56:41 pgsql: Fix treatment of *lpNumberOfBytesRecvd == 0: that's a completion
Previous Message Tom Lane 2016-01-02 21:25:39 pgsql: Fix overly-strict assertions in spgtextproc.c.