diff options
| author | Dean Rasheed | 2016-05-06 11:45:36 +0000 |
|---|---|---|
| committer | Dean Rasheed | 2016-05-06 11:45:36 +0000 |
| commit | 93a8c6fd6c5eeb61c12402f616a327d998a731c4 (patch) | |
| tree | 77f28fa788616dc5d282778e09ca885bbd91fe2b /src/include | |
| parent | 306ff0aaf8ef2a4c69a799faf7e6c72fea1c4709 (diff) | |
Move and rename fmtReloptionsArray().
Move fmtReloptionsArray() from pg_dump.c to string_utils.c so that it
is available to other frontend code. In particular psql's \ev and \sv
commands need it to handle view reloptions. Also rename the function
to appendReloptionsArray(), which is a more accurate description of
what it does.
Author: Dean Rasheed
Reviewed-by: Peter Eisentraut
Discussion: http://www.postgresql.org/message-id/CAEZATCWZjCgKRyM-agE0p8ax15j9uyQoF=qew7D2xB6cF76T8A@mail.gmail.com
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/fe_utils/string_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/fe_utils/string_utils.h b/src/include/fe_utils/string_utils.h index 5d3fcc24271..733e337910b 100644 --- a/src/include/fe_utils/string_utils.h +++ b/src/include/fe_utils/string_utils.h @@ -42,6 +42,9 @@ extern void appendByteaLiteral(PQExpBuffer buf, extern bool parsePGArray(const char *atext, char ***itemarray, int *nitems); +extern bool appendReloptionsArray(PQExpBuffer buffer, const char *reloptions, + const char *prefix, int encoding, bool std_strings); + extern bool processSQLNamePattern(PGconn *conn, PQExpBuffer buf, const char *pattern, bool have_where, bool force_escape, |
