|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Macros | |
| #define | DATCONNLIMIT_UNLIMITED -1 /* no limit */ |
| #define | DATCONNLIMIT_INVALID_DB -2 |
Typedefs | |
| typedef FormData_pg_database * | Form_pg_database |
Functions | |
| CATALOG (pg_database, 1262, DatabaseRelationId) BKI_SHARED_RELATION BKI_ROWTYPE_OID(1248 | |
| Oid datdba | BKI_DEFAULT (POSTGRES) BKI_LOOKUP(pg_authid) |
| Oid dattablespace | BKI_LOOKUP (pg_tablespace) |
| DECLARE_TOAST_WITH_MACRO (pg_database, 4177, 4178, PgDatabaseToastTable, PgDatabaseToastIndex) | |
| DECLARE_UNIQUE_INDEX (pg_database_datname_index, 2671, DatabaseNameIndexId, pg_database, btree(datname name_ops)) | |
| DECLARE_UNIQUE_INDEX_PKEY (pg_database_oid_index, 2672, DatabaseOidIndexId, pg_database, btree(oid oid_ops)) | |
| MAKE_SYSCACHE (DATABASEOID, pg_database_oid_index, 4) | |
| DECLARE_OID_DEFINING_MACRO (Template0DbOid, 4) | |
| DECLARE_OID_DEFINING_MACRO (PostgresDbOid, 5) | |
| Oid | get_database_oid (const char *dbname, bool missing_ok) |
| bool | database_is_invalid_form (Form_pg_database datform) |
| bool | database_is_invalid_oid (Oid dboid) |
| #define DATCONNLIMIT_INVALID_DB -2 |
Definition at line 124 of file pg_database.h.
| #define DATCONNLIMIT_UNLIMITED -1 /* no limit */ |
Definition at line 117 of file pg_database.h.
Definition at line 96 of file pg_database.h.
| Oid dattablespace BKI_LOOKUP | ( | pg_tablespace | ) |
| CATALOG | ( | pg_database | , |
| 1262 | , | ||
| DatabaseRelationId | |||
| ) |
|
extern |
Definition at line 3215 of file dbcommands.c.
References DATCONNLIMIT_INVALID_DB, and fb().
Referenced by AlterDatabase(), database_is_invalid_oid(), get_database_list(), InitPostgres(), and vac_truncate_clog().
Definition at line 3225 of file dbcommands.c.
References database_is_invalid_form(), elog, ERROR, fb(), GETSTRUCT(), HeapTupleIsValid, invalid, ObjectIdGetDatum(), ReleaseSysCache(), and SearchSysCache1().
Referenced by createdb().
| DECLARE_OID_DEFINING_MACRO | ( | PostgresDbOid | , |
| 5 | |||
| ) |
| DECLARE_OID_DEFINING_MACRO | ( | Template0DbOid | , |
| 4 | |||
| ) |
| DECLARE_TOAST_WITH_MACRO | ( | pg_database | , |
| 4177 | , | ||
| 4178 | , | ||
| PgDatabaseToastTable | , | ||
| PgDatabaseToastIndex | |||
| ) |
| DECLARE_UNIQUE_INDEX | ( | pg_database_datname_index | , |
| 2671 | , | ||
| DatabaseNameIndexId | , | ||
| pg_database | , | ||
| btree(datname name_ops) | |||
| ) |
| DECLARE_UNIQUE_INDEX_PKEY | ( | pg_database_oid_index | , |
| 2672 | , | ||
| DatabaseOidIndexId | , | ||
| pg_database | , | ||
| btree(oid oid_ops) | |||
| ) |
Definition at line 3168 of file dbcommands.c.
References AccessShareLock, BTEqualStrategyNumber, CStringGetDatum(), dbname, ereport, errcode(), errmsg(), ERROR, fb(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, OidIsValid, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by AlterDatabaseSet(), AlterRoleSet(), CommentObject(), convert_database_name(), createdb(), get_object_address_unqualified(), pg_database_size_name(), regdatabasein(), RenameDatabase(), sepgsql_database_post_create(), synchronize_slots(), and worker_spi_launch().
| MAKE_SYSCACHE | ( | DATABASEOID | , |
| pg_database_oid_index | , | ||
| 4 | |||
| ) |
| DatabaseRelation_Rowtype_Id BKI_SCHEMA_MACRO |
Definition at line 29 of file pg_database.h.
| bool datallowconn |
Definition at line 50 of file pg_database.h.
Referenced by check_for_connection_status(), and set_frozenxids().
| int32 datconnlimit |
Definition at line 59 of file pg_database.h.
Referenced by check_for_connection_status(), and dumpDatabase().
| TransactionId datfrozenxid |
Definition at line 62 of file pg_database.h.
Referenced by vac_truncate_clog().
| bool dathasloginevt |
Definition at line 53 of file pg_database.h.
| bool datistemplate |
Definition at line 47 of file pg_database.h.
Referenced by dumpDatabase().
| char datlocprovider |
Definition at line 44 of file pg_database.h.
Referenced by dumpDatabase(), pg_collation_actual_version(), and pg_database_collation_actual_version().
| TransactionId datminmxid |
Definition at line 65 of file pg_database.h.
Referenced by vac_truncate_clog().
| NameData datname |
Definition at line 35 of file pg_database.h.
Referenced by check_for_connection_status(), compile_database_list(), dumpDatabase(), get_database_name(), getObjectDescription(), getObjectIdentityParts(), progress_report(), RenameDatabase(), and set_frozenxids().
| int32 encoding |
Definition at line 41 of file pg_database.h.
| FormData_pg_database |
Definition at line 89 of file pg_database.h.
Referenced by vac_truncate_clog().