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
13 *-------------------------------------------------------------------------
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
,
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
,
36 extern void processSQLNamePattern(PGconn
*conn
, PQExpBuffer buf
,
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 */