PostgreSQL Source Code git master
|
#include "catalog/genbki.h"
#include "catalog/pg_db_role_setting_d.h"
#include "utils/guc.h"
#include "utils/relcache.h"
#include "utils/snapshot.h"
Go to the source code of this file.
Typedefs | |
typedef FormData_pg_db_role_setting * | Form_pg_db_role_setting |
Functions | |
CATALOG (pg_db_role_setting, 2964, DbRoleSettingRelationId) BKI_SHARED_RELATION | |
DECLARE_TOAST_WITH_MACRO (pg_db_role_setting, 2966, 2967, PgDbRoleSettingToastTable, PgDbRoleSettingToastIndex) | |
DECLARE_UNIQUE_INDEX_PKEY (pg_db_role_setting_databaseid_rol_index, 2965, DbRoleSettingDatidRolidIndexId, pg_db_role_setting, btree(setdatabase oid_ops, setrole oid_ops)) | |
void | AlterSetting (Oid databaseid, Oid roleid, VariableSetStmt *setstmt) |
void | DropSetting (Oid databaseid, Oid roleid) |
void | ApplySetting (Snapshot snapshot, Oid databaseid, Oid roleid, Relation relsetting, GucSource source) |
Variables | |
FormData_pg_db_role_setting | |
Definition at line 47 of file pg_db_role_setting.h.
void AlterSetting | ( | Oid | databaseid, |
Oid | roleid, | ||
VariableSetStmt * | setstmt | ||
) |
Definition at line 24 of file pg_db_role_setting.c.
References a, BTEqualStrategyNumber, CatalogTupleDelete(), CatalogTupleInsert(), CatalogTupleUpdate(), DatumGetArrayTypeP, ExtractSetVariableArgs(), GUCArrayAdd(), GUCArrayDelete(), GUCArrayReset(), heap_form_tuple(), heap_getattr(), heap_modify_tuple(), HeapTupleIsValid, InvokeObjectPostAlterHookArg, VariableSetStmt::kind, VariableSetStmt::name, NoLock, ObjectIdGetDatum(), PointerGetDatum(), RelationGetDescr, RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), table_open(), values, and VAR_RESET_ALL.
Referenced by AlterDatabaseSet(), and AlterRoleSet().
void ApplySetting | ( | Snapshot | snapshot, |
Oid | databaseid, | ||
Oid | roleid, | ||
Relation | relsetting, | ||
GucSource | source | ||
) |
Definition at line 220 of file pg_db_role_setting.c.
References a, BTEqualStrategyNumber, DatumGetArrayTypeP, GUC_ACTION_SET, heap_getattr(), HeapTupleIsValid, ObjectIdGetDatum(), PGC_SUSET, ProcessGUCArray(), RelationGetDescr, ScanKeyInit(), source, systable_beginscan(), systable_endscan(), and systable_getnext().
Referenced by process_settings().
CATALOG | ( | pg_db_role_setting | , |
2964 | , | ||
DbRoleSettingRelationId | |||
) |
Definition at line 34 of file pg_db_role_setting.h.
References BKI_LOOKUP_OPT.
DECLARE_TOAST_WITH_MACRO | ( | pg_db_role_setting | , |
2966 | , | ||
2967 | , | ||
PgDbRoleSettingToastTable | , | ||
PgDbRoleSettingToastIndex | |||
) |
DECLARE_UNIQUE_INDEX_PKEY | ( | pg_db_role_setting_databaseid_rol_index | , |
2965 | , | ||
DbRoleSettingDatidRolidIndexId | , | ||
pg_db_role_setting | , | ||
btree(setdatabase oid_ops, setrole oid_ops) | |||
) |
Definition at line 170 of file pg_db_role_setting.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), ForwardScanDirection, heap_getnext(), HeapTupleIsValid, ObjectIdGetDatum(), OidIsValid, RowExclusiveLock, ScanKeyInit(), HeapTupleData::t_self, table_beginscan_catalog(), table_close(), table_endscan(), and table_open().
Referenced by dropdb(), and DropRole().
FormData_pg_db_role_setting |
Definition at line 45 of file pg_db_role_setting.h.