Code + docs review for escaping of option values (commit 11a020eb6).

Tom Lane <tgl@sss.pgh.pa.us>

Commit: cbc8d65639344c390a1d1a7f646c186ff3ad8693
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-06-29T16:42:52Z
Releases: 9.5.0
Code + docs review for escaping of option values (commit 11a020eb6).

Avoid memory leak from incorrect choice of how to free a StringInfo
(resetStringInfo doesn't do it).  Now that pg_split_opts doesn't scribble
on the optstr, mark that as "const" for clarity.  Attach the commentary in
protocol.sgml to the right place, and add documentation about the
user-visible effects of this change on postgres' -o option and libpq's
PGOPTIONS option.

Files