diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-11-29 16:34:45 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-11-29 16:34:45 -0500 |
commit | 8b08deb0d1ee04a82130e640e48e302a3456817a (patch) | |
tree | 408b6fb90a1bb00ade40bf715315238dbc0e9eca /src/bin/pg_dump/dumputils.h | |
parent | b60f37bf44c248189ed8e4d925cd8e45308d54f8 (diff) |
Simplify the pg_dump/pg_restore error reporting macros, and allow
pg_dumpall to use the same memory allocation functions as the others.
Diffstat (limited to 'src/bin/pg_dump/dumputils.h')
-rw-r--r-- | src/bin/pg_dump/dumputils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_dump/dumputils.h b/src/bin/pg_dump/dumputils.h index 40bbc81ae8d..62d8080585d 100644 --- a/src/bin/pg_dump/dumputils.h +++ b/src/bin/pg_dump/dumputils.h @@ -51,5 +51,9 @@ extern void buildShSecLabelQuery(PGconn *conn, const char *catalog_name, uint32 objectId, PQExpBuffer sql); extern void emitShSecLabels(PGconn *conn, PGresult *res, PQExpBuffer buffer, const char *target, const char *objname); +extern void write_msg(const char *modulename, const char *fmt,...) + __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3))); +extern void exit_horribly(const char *modulename, const char *fmt,...) + __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3))); #endif /* DUMPUTILS_H */ |