PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/genam.h"
#include "access/heapam.h"
#include "access/htup_details.h"
#include "access/tableam.h"
#include "catalog/indexing.h"
#include "catalog/objectaccess.h"
#include "catalog/pg_db_role_setting.h"
#include "utils/fmgroids.h"
#include "utils/rel.h"
Go to the source code of this file.
Functions | |
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) |
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().
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().