PostgreSQL Source Code  git master
test_pg_db_role_setting.c File Reference
#include "postgres.h"
#include "utils/guc.h"
Include dependency graph for test_pg_db_role_setting.c:

Go to the source code of this file.

Functions

 PG_FUNCTION_INFO_V1 (load_test_pg_db_role_setting)
 
void _PG_init (void)
 
Datum load_test_pg_db_role_setting (PG_FUNCTION_ARGS)
 

Variables

 PG_MODULE_MAGIC
 
static char * superuser_param
 
static char * user_param
 

Function Documentation

◆ _PG_init()

void _PG_init ( void  )

Definition at line 29 of file test_pg_db_role_setting.c.

30 {
31  DefineCustomStringVariable("test_pg_db_role_setting.superuser_param",
32  "Sample superuser parameter.",
33  NULL,
35  "superuser_param_value",
36  PGC_SUSET,
37  0,
38  NULL, NULL, NULL);
39 
40  DefineCustomStringVariable("test_pg_db_role_setting.user_param",
41  "Sample user parameter.",
42  NULL,
43  &user_param,
44  "user_param_value",
46  0,
47  NULL, NULL, NULL);
48 }
void DefineCustomStringVariable(const char *name, const char *short_desc, const char *long_desc, char **valueAddr, const char *bootValue, GucContext context, int flags, GucStringCheckHook check_hook, GucStringAssignHook assign_hook, GucShowHook show_hook)
Definition: guc.c:5023
@ PGC_SUSET
Definition: guc.h:74
@ PGC_USERSET
Definition: guc.h:75
static char * user_param
static char * superuser_param

References DefineCustomStringVariable(), PGC_SUSET, PGC_USERSET, superuser_param, and user_param.

◆ load_test_pg_db_role_setting()

Datum load_test_pg_db_role_setting ( PG_FUNCTION_ARGS  )

Definition at line 54 of file test_pg_db_role_setting.c.

55 {
57 }
#define PG_RETURN_VOID()
Definition: fmgr.h:349

References PG_RETURN_VOID.

◆ PG_FUNCTION_INFO_V1()

PG_FUNCTION_INFO_V1 ( load_test_pg_db_role_setting  )

Variable Documentation

◆ PG_MODULE_MAGIC

PG_MODULE_MAGIC

Definition at line 18 of file test_pg_db_role_setting.c.

◆ superuser_param

char* superuser_param
static

Definition at line 22 of file test_pg_db_role_setting.c.

Referenced by _PG_init().

◆ user_param

char* user_param
static

Definition at line 23 of file test_pg_db_role_setting.c.

Referenced by _PG_init().