Promote pg_dumpall shell/connstr quoting functions to src/fe_utils.
Noah Misch <noah@leadboat.com>
Promote pg_dumpall shell/connstr quoting functions to src/fe_utils. Rename these newly-extern functions with terms more typical of their new neighbors. No functional changes; a subsequent commit will use them in more places. Back-patch to 9.1 (all supported versions). Back branches lack src/fe_utils, so instead rename the functions in place; the subsequent commit will copy them into the other programs using them. Security: CVE-2016-5424
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_dumpall.c | modified | +7 −151 |
| src/fe_utils/string_utils.c | modified | +143 −0 |
| src/include/fe_utils/string_utils.h | modified | +5 −2 |
| src/port/system.c | modified | +2 −1 |