Fix up hack to suppress escape_string_warning so that it actually works
Tom Lane <tgl@sss.pgh.pa.us>
Fix up hack to suppress escape_string_warning so that it actually works and there's only one place that's a kluge, ie, appendStringLiteralConn. Note that pg_dump itself doesn't use appendStringLiteralConn, so its behavior is not affected; only the other utility programs care.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/dumputils.c | modified | +16 −1 |
| src/bin/psql/command.c | modified | +4 −4 |
| src/bin/psql/common.h | modified | +1 −7 |
| src/bin/psql/copy.c | modified | +37 −27 |
| src/bin/psql/describe.c | modified | +1 −5 |
| src/bin/scripts/createdb.c | modified | +1 −3 |
| src/bin/scripts/createuser.c | modified | +1 −3 |