Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / bin / pg_dump / dumputils.h
blobf493a41576974c80a054951d4f387c3c0e49fc40
1 /*-------------------------------------------------------------------------
3 * Utility routines for SQL dumping
4 * Basically this is stuff that is useful in both pg_dump and pg_dumpall.
5 * Lately it's also being used by psql and bin/scripts/ ...
8 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * $PostgreSQL$
13 *-------------------------------------------------------------------------
16 #ifndef DUMPUTILS_H
17 #define DUMPUTILS_H
19 #include "libpq-fe.h"
20 #include "pqexpbuffer.h"
22 extern void init_parallel_dump_utils(void);
23 extern const char *fmtId(const char *identifier);
24 extern void appendStringLiteral(PQExpBuffer buf, const char *str,
25 int encoding, bool std_strings);
26 extern void appendStringLiteralConn(PQExpBuffer buf, const char *str,
27 PGconn *conn);
28 extern void appendStringLiteralDQ(PQExpBuffer buf, const char *str,
29 const char *dqprefix);
30 extern int parse_version(const char *versionString);
31 extern bool parsePGArray(const char *atext, char ***itemarray, int *nitems);
32 extern bool buildACLCommands(const char *name, const char *subname,
33 const char *type, const char *acls, const char *owner,
34 int remoteVersion,
35 PQExpBuffer sql);
36 extern void processSQLNamePattern(PGconn *conn, PQExpBuffer buf,
37 const char *pattern,
38 bool have_where, bool force_escape,
39 const char *schemavar, const char *namevar,
40 const char *altnamevar, const char *visibilityrule);
42 #endif /* DUMPUTILS_H */