PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_db_role_setting.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_db_role_setting.h
4 * definition of the system catalog for per-database/per-user
5 * configuration settings (pg_db_role_setting)
6 *
7 *
8 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
10 *
11 * src/include/catalog/pg_db_role_setting.h
12 *
13 * NOTES
14 * The Catalog.pm module reads this file and derives schema
15 * information.
16 *
17 *-------------------------------------------------------------------------
18 */
19#ifndef PG_DB_ROLE_SETTING_H
20#define PG_DB_ROLE_SETTING_H
21
22#include "catalog/genbki.h"
23#include "catalog/pg_db_role_setting_d.h" /* IWYU pragma: export */
24
25#include "utils/guc.h"
26#include "utils/relcache.h"
27#include "utils/snapshot.h"
28
29/* ----------------
30 * pg_db_role_setting definition. cpp turns this into
31 * typedef struct FormData_pg_db_role_setting
32 * ----------------
33 */
35{
36 /* database, or 0 for a role-specific setting */
38
39 /* role, or 0 for a database-specific setting */
41
42#ifdef CATALOG_VARLEN /* variable-length fields start here */
43 text setconfig[1]; /* GUC settings to apply at login */
44#endif
46
48
50
52
53/*
54 * prototypes for functions in pg_db_role_setting.c
55 */
56extern void AlterSetting(Oid databaseid, Oid roleid, VariableSetStmt *setstmt);
57extern void DropSetting(Oid databaseid, Oid roleid);
58extern void ApplySetting(Snapshot snapshot, Oid databaseid, Oid roleid,
60
61#endif /* PG_DB_ROLE_SETTING_H */
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:86
#define BKI_LOOKUP_OPT(catalog)
Definition genbki.h:47
#define DECLARE_TOAST_WITH_MACRO(name, toastoid, indexoid, toastoidmacro, indexoidmacro)
Definition genbki.h:64
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:23
#define BKI_SHARED_RELATION
Definition genbki.h:27
GucSource
Definition guc.h:112
FormData_pg_db_role_setting
void DropSetting(Oid databaseid, Oid roleid)
void AlterSetting(Oid databaseid, Oid roleid, VariableSetStmt *setstmt)
void ApplySetting(Snapshot snapshot, Oid databaseid, Oid roleid, Relation relsetting, GucSource source)
FormData_pg_db_role_setting * Form_pg_db_role_setting
static rewind_source * source
Definition pg_rewind.c:89
unsigned int Oid
static int fb(int x)
Definition c.h:706