Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pg_db_role_setting.h62 linesDownload Raw Back to catalog
1/*-------------------------------------------------------------------------2 *3 * pg_db_role_setting.h4 *	  definition of the system catalog for per-database/per-user5 *	  configuration settings (pg_db_role_setting)6 *7 *8 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group9 * Portions Copyright (c) 1994, Regents of the University of California10 *11 * src/include/catalog/pg_db_role_setting.h12 *13 * NOTES14 *	  The Catalog.pm module reads this file and derives schema15 *	  information.16 *17 *-------------------------------------------------------------------------18 */19#ifndef PG_DB_ROLE_SETTING_H20#define PG_DB_ROLE_SETTING_H21 22#include "catalog/genbki.h"23#include "catalog/pg_db_role_setting_d.h"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 into31 *		typedef struct FormData_pg_db_role_setting32 * ----------------33 */34CATALOG(pg_db_role_setting,2964,DbRoleSettingRelationId) BKI_SHARED_RELATION35{36	/* database, or 0 for a role-specific setting */37	Oid			setdatabase BKI_LOOKUP_OPT(pg_database);38 39	/* role, or 0 for a database-specific setting */40	Oid			setrole BKI_LOOKUP_OPT(pg_authid);41 42#ifdef CATALOG_VARLEN			/* variable-length fields start here */43	text		setconfig[1];	/* GUC settings to apply at login */44#endif45} FormData_pg_db_role_setting;46 47typedef FormData_pg_db_role_setting * Form_pg_db_role_setting;48 49DECLARE_TOAST_WITH_MACRO(pg_db_role_setting, 2966, 2967, PgDbRoleSettingToastTable, PgDbRoleSettingToastIndex);50 51DECLARE_UNIQUE_INDEX_PKEY(pg_db_role_setting_databaseid_rol_index, 2965, DbRoleSettingDatidRolidIndexId, on pg_db_role_setting using btree(setdatabase oid_ops, setrole oid_ops));52 53/*54 * prototypes for functions in pg_db_role_setting.c55 */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,59						 Relation relsetting, GucSource source);60 61#endif							/* PG_DB_ROLE_SETTING_H */62 
codekingpro/portable-devtools · Team Ai