PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "access/htup_details.h"
#include "access/parallel.h"
#include "access/xact.h"
#include "access/xlog.h"
#include "catalog/pg_authid.h"
#include "commands/variable.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "utils/acl.h"
#include "utils/builtins.h"
#include "utils/snapmgr.h"
#include "utils/syscache.h"
#include "utils/timestamp.h"
#include "utils/varlena.h"
Go to the source code of this file.
Data Structures | |
struct | role_auth_extra |
Variables | |
char * | role_string |
void assign_client_encoding | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 698 of file variable.c.
References elog(), encoding, ereport, errcode(), errmsg(), ERROR, InitializingParallelWorker, IsParallelWorker, LOG, and SetClientEncoding().
void assign_datestyle | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 236 of file variable.c.
void assign_log_timezone | ( | const char * | newval, |
void * | extra | ||
) |
void assign_random_seed | ( | double | newval, |
void * | extra | ||
) |
Definition at line 602 of file variable.c.
References DirectFunctionCall1, Float8GetDatum(), newval, and setseed().
void assign_role | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 913 of file variable.c.
References role_auth_extra::is_superuser, role_auth_extra::roleid, and SetCurrentRoleId().
void assign_session_authorization | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 803 of file variable.c.
References role_auth_extra::is_superuser, role_auth_extra::roleid, and SetSessionAuthorization().
void assign_timezone | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 622 of file variable.c.
References encoding, free, GetDatabaseEncodingName(), GUC_check_errcode(), GUC_check_errdetail, IsTransactionState(), malloc, newval, pg_encoding_to_char(), pg_valid_client_encoding(), and PrepareClientEncoding().
Definition at line 44 of file variable.c.
References DateOrder, DATEORDER_DMY, DATEORDER_MDY, DATEORDER_YMD, DateStyle, free, GetConfigOptionResetString(), GUC_check_errdetail, lfirst, list_free(), malloc, newval, pfree(), pg_strcasecmp(), pg_strncasecmp(), pstrdup(), source, SplitIdentifierString(), USE_GERMAN_DATES, USE_ISO_DATES, USE_POSTGRES_DATES, and USE_SQL_DATES.
Definition at line 408 of file variable.c.
References GUC_check_errdetail, GUC_check_errmsg, malloc, newval, pg_tz_acceptable(), and pg_tzset().
Definition at line 825 of file variable.c.
References AUTHNAME, ereport, errcode(), errmsg(), GetSessionUserId(), GETSTRUCT, GUC_check_errcode(), GUC_check_errmsg, HeapTupleIsValid, InitializingParallelWorker, InvalidOid, is_member_of_role(), role_auth_extra::is_superuser, is_superuser(), IsTransactionState(), malloc, newval, NOTICE, PGC_S_TEST, PointerGetDatum, ReleaseSysCache(), role_auth_extra::roleid, SearchSysCache1(), and source.
Definition at line 744 of file variable.c.
References AUTHNAME, ereport, errcode(), errmsg(), GETSTRUCT, GUC_check_errmsg, HeapTupleIsValid, role_auth_extra::is_superuser, is_superuser(), IsTransactionState(), malloc, newval, NOTICE, PGC_S_TEST, PointerGetDatum, ReleaseSysCache(), role_auth_extra::roleid, SearchSysCache1(), and source.
Definition at line 253 of file variable.c.
References CStringGetDatum, DatumGetIntervalP, DirectFunctionCall3, GUC_check_errdetail, GUC_check_errmsg, Int32GetDatum, interval_in(), InvalidOid, malloc, interval::month, newval, ObjectIdGetDatum, pfree(), pg_strncasecmp(), pg_tz_acceptable(), pg_tzset(), pg_tzset_offset(), pstrdup(), SECS_PER_HOUR, interval::time, USECS_PER_SEC, and val.
Definition at line 562 of file variable.c.
References FirstSnapshotSet, GUC_check_errcode(), GUC_check_errmsg, and IsSubTransaction().
Definition at line 486 of file variable.c.
References FirstSnapshotSet, GUC_check_errcode(), GUC_check_errmsg, InitializingParallelWorker, IsSubTransaction(), IsTransactionState(), newval, RecoveryInProgress(), and XactReadOnly.
Definition at line 525 of file variable.c.
References FirstSnapshotSet, GUC_check_errcode(), GUC_check_errhint, GUC_check_errmsg, IsSubTransaction(), IsTransactionState(), newval, RecoveryInProgress(), XACT_SERIALIZABLE, and XactIsoLevel.
const char* show_log_timezone | ( | void | ) |
const char* show_random_seed | ( | void | ) |
Definition at line 611 of file variable.c.
const char* show_role | ( | void | ) |
Definition at line 921 of file variable.c.
References GetCurrentRoleId(), OidIsValid, and role_string.
const char* show_timezone | ( | void | ) |
|
extern |
Definition at line 722 of file guc.c.
Referenced by show_role().