|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <ctype.h>#include "common/file_perm.h"#include "common/logging.h"#include "dumputils.h"#include "fe_utils/string_utils.h"
Go to the source code of this file.
Macros | |
| #define | CONVERT_PRIV(code, keywd) |
Variables | |
| static const char | restrict_chars [] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" |
Definition at line 658 of file dumputils.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), fb(), and subname.
| bool buildACLCommands | ( | const char * | name, |
| const char * | subname, | ||
| const char * | nspname, | ||
| const char * | type, | ||
| const char * | acls, | ||
| const char * | baseacls, | ||
| const char * | owner, | ||
| const char * | prefix, | ||
| int | remoteVersion, | ||
| PQExpBuffer | sql | ||
| ) |
Definition at line 104 of file dumputils.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), createPQExpBuffer(), PQExpBufferData::data, destroyPQExpBuffer(), fb(), fmtId(), free, i, j, PQExpBufferData::len, name, parseAclItem(), parsePGArray(), pg_malloc(), printfPQExpBuffer(), subname, and type.
Referenced by buildDefaultACLCommands(), dumpACL(), dumpRoleGUCPrivs(), and dumpTablespaces().
| bool buildDefaultACLCommands | ( | const char * | type, |
| const char * | nspname, | ||
| const char * | acls, | ||
| const char * | acldefault, | ||
| const char * | owner, | ||
| int | remoteVersion, | ||
| PQExpBuffer | sql | ||
| ) |
Definition at line 366 of file dumputils.c.
References acldefault(), appendPQExpBuffer(), buildACLCommands(), createPQExpBuffer(), PQExpBufferData::data, destroyPQExpBuffer(), fb(), fmtId(), and type.
Referenced by dumpDefaultACL().
| void buildShSecLabelQuery | ( | const char * | catalog_name, |
| Oid | objectId, | ||
| PQExpBuffer | sql | ||
| ) |
Definition at line 678 of file dumputils.c.
References appendPQExpBuffer(), and fb().
Referenced by buildShSecLabels(), and dumpDatabase().
Definition at line 940 of file dumputils.c.
References fb(), mkdir, pg_check_dir(), pg_dir_create_mode, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 619 of file dumputils.c.
References appendPQExpBufferChar(), input, output, and resetPQExpBuffer().
Referenced by parseAclItem().
| void emitShSecLabels | ( | PGconn * | conn, |
| PGresult * | res, | ||
| PQExpBuffer | buffer, | ||
| const char * | objtype, | ||
| const char * | objname | ||
| ) |
Definition at line 696 of file dumputils.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), appendStringLiteralConn(), conn, fmtId(), i, label, PQgetvalue, and PQntuples.
Referenced by buildShSecLabels(), and dumpDatabase().
Definition at line 973 of file dumputils.c.
References buf, fb(), i, idx(), palloc(), pg_strong_random(), and restrict_chars.
| void makeAlterConfigCommand | ( | PGconn * | conn, |
| const char * | configitem, | ||
| const char * | type, | ||
| const char * | name, | ||
| const char * | type2, | ||
| const char * | name2, | ||
| PQExpBuffer | buf | ||
| ) |
Definition at line 865 of file dumputils.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), appendStringLiteralConn(), buf, conn, fb(), fmtId(), name, pg_free(), pg_strdup(), SplitGUCList(), type, and variable_is_guc_list_quote().
Referenced by dumpDatabaseConfig(), and dumpUserConfig().
|
static |
Definition at line 423 of file dumputils.c.
References appendPQExpBuffer(), buf, CONVERT_PRIV, dequoteAclUserName(), fb(), pg_free(), pg_strdup(), printfPQExpBuffer(), resetPQExpBuffer(), subname, and type.
Referenced by buildACLCommands().
| void quoteAclUserName | ( | PQExpBuffer | output, |
| const char * | input | ||
| ) |
Definition at line 585 of file dumputils.c.
References appendPQExpBufferChar(), fb(), input, and output.
Referenced by getNamespaces().
Definition at line 52 of file dumputils.c.
References fb(), pg_strdup(), and str.
Referenced by _printTocEntry(), dumpDatabases(), dumpTableData(), dumpUserConfig(), and PrintTOCSummary().
Definition at line 765 of file dumputils.c.
References fb(), and pg_malloc().
Referenced by makeAlterConfigCommand().
Definition at line 997 of file dumputils.c.
References fb(), restrict_chars, and restrict_key.
Definition at line 730 of file dumputils.c.
References name, and pg_strcasecmp().
Referenced by dumpFunc(), and makeAlterConfigCommand().
|
static |
Definition at line 24 of file dumputils.c.
Referenced by generate_restrict_key(), and valid_restrict_key().