Commit c88540fb authored by Peter Eisentraut's avatar Peter Eisentraut

Dump privileges on functions, aggregates, languages.

parent dd9af92c
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: pg_dump.h,v 1.85 2002/05/10 22:36:27 tgl Exp $ * $Id: pg_dump.h,v 1.86 2002/05/19 10:08:25 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -62,6 +62,7 @@ typedef struct _funcInfo ...@@ -62,6 +62,7 @@ typedef struct _funcInfo
int nargs; int nargs;
char **argtypes; /* OIDs */ char **argtypes; /* OIDs */
char *prorettype; /* OID */ char *prorettype; /* OID */
char *proacl;
bool dumped; /* true if already dumped */ bool dumped; /* true if already dumped */
} FuncInfo; } FuncInfo;
...@@ -69,8 +70,10 @@ typedef struct _aggInfo ...@@ -69,8 +70,10 @@ typedef struct _aggInfo
{ {
char *oid; char *oid;
char *aggname; char *aggname;
char *aggbasetype;
NamespaceInfo *aggnamespace; /* link to containing namespace */ NamespaceInfo *aggnamespace; /* link to containing namespace */
char *usename; char *usename;
char *aggacl;
} AggInfo; } AggInfo;
typedef struct _oprInfo typedef struct _oprInfo
...@@ -201,11 +204,11 @@ extern void dumpNamespaces(Archive *fout, ...@@ -201,11 +204,11 @@ extern void dumpNamespaces(Archive *fout,
NamespaceInfo *nsinfo, int numNamespaces); NamespaceInfo *nsinfo, int numNamespaces);
extern void dumpTypes(Archive *fout, FuncInfo *finfo, int numFuncs, extern void dumpTypes(Archive *fout, FuncInfo *finfo, int numFuncs,
TypeInfo *tinfo, int numTypes); TypeInfo *tinfo, int numTypes);
extern void dumpProcLangs(Archive *fout, FuncInfo *finfo, int numFuncs); extern void dumpProcLangs(Archive *fout, FuncInfo finfo[], int numFuncs);
extern void dumpFuncs(Archive *fout, FuncInfo *finfo, int numFuncs); extern void dumpFuncs(Archive *fout, FuncInfo finfo[], int numFuncs);
extern void dumpAggs(Archive *fout, AggInfo *agginfo, int numAggregates); extern void dumpAggs(Archive *fout, AggInfo agginfo[], int numAggregates);
extern void dumpOprs(Archive *fout, OprInfo *oprinfo, int numOperators); extern void dumpOprs(Archive *fout, OprInfo *oprinfo, int numOperators);
extern void dumpTables(Archive *fout, TableInfo *tblinfo, int numTables, extern void dumpTables(Archive *fout, TableInfo tblinfo[], int numTables,
const bool aclsSkip, const bool aclsSkip,
const bool schemaOnly, const bool dataOnly); const bool schemaOnly, const bool dataOnly);
extern void dumpIndexes(Archive *fout, TableInfo *tbinfo, int numTables); extern void dumpIndexes(Archive *fout, TableInfo *tbinfo, int numTables);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment