mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
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
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
*
|
||||
* String-processing utility routines for frontend code
|
||||
*
|
||||
* Assorted utility functions that are useful in constructing SQL queries
|
||||
* and interpreting backend output.
|
||||
* Utility functions that interpret backend output or quote strings for
|
||||
* assorted contexts.
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
||||
@ -40,6 +40,9 @@ extern void appendByteaLiteral(PQExpBuffer buf,
|
||||
const unsigned char *str, size_t length,
|
||||
bool std_strings);
|
||||
|
||||
extern void appendShellString(PQExpBuffer buf, const char *str);
|
||||
extern void appendConnStrVal(PQExpBuffer buf, const char *str);
|
||||
|
||||
extern bool parsePGArray(const char *atext, char ***itemarray, int *nitems);
|
||||
|
||||
extern bool appendReloptionsArray(PQExpBuffer buffer, const char *reloptions,
|
||||
|
Reference in New Issue
Block a user