Code + docs review for escaping of option values (commit 11a020eb6).
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +6 −3 |
| doc/src/sgml/protocol.sgml | modified | +6 −6 |
| doc/src/sgml/ref/postgres-ref.sgml | modified | +10 −4 |
| src/backend/utils/init/postinit.c | modified | +6 −5 |
| src/include/miscadmin.h | modified | +1 −1 |