From 6671cf5171d1a89708951cefbff49fa826ba34d4 Mon Sep 17 00:00:00 2001 From: Jason Petersen Date: Thu, 29 Sep 2016 15:43:00 -0600 Subject: [PATCH] Remove unused dumputils.h header Believe this was used by csql, which is now gone. --- .gitattributes | 1 - src/include/dumputils.h | 73 ----------------------------------------- 2 files changed, 74 deletions(-) delete mode 100644 src/include/dumputils.h diff --git a/.gitattributes b/.gitattributes index 5eb7bda7b..dff1d084e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -32,7 +32,6 @@ src/backend/distributed/utils/citus_readfuncs_95.c -citus-style src/backend/distributed/utils/ruleutils_94.c -citus-style src/backend/distributed/utils/ruleutils_95.c -citus-style src/include/distributed/citus_nodes.h -citus-style -src/include/dumputils.h -citus-style # all csql files use PostgreSQL style... src/bin/csql/*.[ch] -citus-style diff --git a/src/include/dumputils.h b/src/include/dumputils.h deleted file mode 100644 index b387aa195..000000000 --- a/src/include/dumputils.h +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - * - * Utility routines for SQL dumping - * Basically this is stuff that is useful in both pg_dump and pg_dumpall. - * Lately it's also being used by psql and bin/scripts/ ... - * - * - * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/bin/pg_dump/dumputils.h - * - *------------------------------------------------------------------------- - */ - -#ifndef DUMPUTILS_H -#define DUMPUTILS_H - -#include "libpq-fe.h" -#include "pqexpbuffer.h" - -typedef struct SimpleStringListCell -{ - struct SimpleStringListCell *next; - char val[1]; /* VARIABLE LENGTH FIELD */ -} SimpleStringListCell; - -typedef struct SimpleStringList -{ - SimpleStringListCell *head; - SimpleStringListCell *tail; -} SimpleStringList; - - -extern int quote_all_identifiers; -extern PQExpBuffer (*getLocalPQExpBuffer) (void); - -extern const char *fmtId(const char *identifier); -extern const char *fmtQualifiedId(int remoteVersion, - const char *schema, const char *id); -extern void appendStringLiteral(PQExpBuffer buf, const char *str, - int encoding, bool std_strings); -extern void appendStringLiteralConn(PQExpBuffer buf, const char *str, - PGconn *conn); -extern void appendStringLiteralDQ(PQExpBuffer buf, const char *str, - const char *dqprefix); -extern void appendByteaLiteral(PQExpBuffer buf, - const unsigned char *str, size_t length, - bool std_strings); -extern bool parsePGArray(const char *atext, char ***itemarray, int *nitems); -extern bool buildACLCommands(const char *name, const char *subname, - const char *type, const char *acls, const char *owner, - const char *prefix, int remoteVersion, - PQExpBuffer sql); -extern bool buildDefaultACLCommands(const char *type, const char *nspname, - const char *acls, const char *owner, - int remoteVersion, - PQExpBuffer sql); -extern bool processSQLNamePattern(PGconn *conn, PQExpBuffer buf, - const char *pattern, - bool have_where, bool force_escape, - const char *schemavar, const char *namevar, - const char *altnamevar, const char *visibilityrule); -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 set_dump_section(const char *arg, int *dumpSections); - -extern void simple_string_list_append(SimpleStringList *list, const char *val); -extern bool simple_string_list_member(SimpleStringList *list, const char *val); - -#endif /* DUMPUTILS_H */