2009-10-08 00:14:26 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_db_role_setting.h
|
|
|
|
* definition of configuration settings
|
|
|
|
*
|
|
|
|
*
|
2012-01-02 00:01:58 +01:00
|
|
|
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
|
2009-10-08 00:14:26 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/catalog/pg_db_role_setting.h
|
2009-10-08 00:14:26 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
2010-01-05 02:06:57 +01:00
|
|
|
* the genbki.pl script reads this file and generates .bki
|
2009-10-08 00:14:26 +02:00
|
|
|
* information from the DATA() statements.
|
|
|
|
*
|
|
|
|
* XXX do NOT break up DATA() statements into multiple lines!
|
|
|
|
* the scripts are not as smart as you might think...
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_DB_ROLE_SETTING_H
|
|
|
|
#define PG_DB_ROLE_SETTING_H
|
|
|
|
|
|
|
|
#include "utils/guc.h"
|
|
|
|
#include "utils/relcache.h"
|
|
|
|
|
|
|
|
/* ----------------
|
2010-02-26 03:01:40 +01:00
|
|
|
* pg_db_role_setting definition. cpp turns this into
|
2009-10-08 00:14:26 +02:00
|
|
|
* typedef struct FormData_pg_db_role_setting
|
|
|
|
* ----------------
|
|
|
|
*/
|
2010-02-26 03:01:40 +01:00
|
|
|
#define DbRoleSettingRelationId 2964
|
2009-10-08 00:14:26 +02:00
|
|
|
|
|
|
|
CATALOG(pg_db_role_setting,2964) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
|
|
|
|
{
|
|
|
|
Oid setdatabase; /* database */
|
|
|
|
Oid setrole; /* role */
|
|
|
|
text setconfig[1]; /* GUC settings to apply at login */
|
|
|
|
} FormData_pg_db_role_setting;
|
|
|
|
|
|
|
|
typedef FormData_pg_db_role_setting *Form_pg_db_role_setting;
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* compiler constants for pg_db_role_setting
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Natts_pg_db_role_setting 3
|
|
|
|
#define Anum_pg_db_role_setting_setdatabase 1
|
|
|
|
#define Anum_pg_db_role_setting_setrole 2
|
|
|
|
#define Anum_pg_db_role_setting_setconfig 3
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* initial contents of pg_db_role_setting are NOTHING
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for functions in pg_db_role_setting.h
|
|
|
|
*/
|
|
|
|
extern void AlterSetting(Oid databaseid, Oid roleid, VariableSetStmt *setstmt);
|
|
|
|
extern void DropSetting(Oid databaseid, Oid roleid);
|
|
|
|
extern void ApplySetting(Oid databaseid, Oid roleid, Relation relsetting,
|
|
|
|
GucSource source);
|
|
|
|
|
|
|
|
#endif /* PG_DB_ROLE_SETTING_H */
|