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 "access/xlogprefetcher.h"
#include "catalog/pg_authid.h"
#include "common/string.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "postmaster/postmaster.h"
#include "postmaster/syslogger.h"
#include "storage/bufmgr.h"
#include "utils/acl.h"
#include "utils/backend_status.h"
#include "utils/datetime.h"
#include "utils/fmgrprotos.h"
#include "utils/guc_hooks.h"
#include "utils/snapmgr.h"
#include "utils/syscache.h"
#include "utils/timestamp.h"
#include "utils/tzparser.h"
#include "utils/varlena.h"
Go to the source code of this file.
Data Structures | |
struct | role_auth_extra |
void assign_application_name | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 1108 of file variable.c.
References newval, and pgstat_report_appname().
void assign_client_encoding | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 786 of file variable.c.
References elog, encoding, IsParallelWorker, LOG, and SetClientEncoding().
void assign_datestyle | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 244 of file variable.c.
void assign_log_timezone | ( | const char * | newval, |
void * | extra | ||
) |
void assign_maintenance_io_concurrency | ( | int | newval, |
void * | extra | ||
) |
Definition at line 1146 of file variable.c.
References AmStartupProcess, maintenance_io_concurrency, newval, and XLogPrefetchReconfigure().
void assign_random_seed | ( | double | newval, |
void * | extra | ||
) |
Definition at line 668 of file variable.c.
References DirectFunctionCall1, Float8GetDatum(), newval, and setseed().
void assign_role | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 1026 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 912 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 381 of file variable.c.
References ClearTimeZoneAbbrevCache(), and session_timezone.
void assign_timezone_abbreviations | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 519 of file variable.c.
References InstallTimeZoneAbbrevs().
bool check_application_name | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1080 of file variable.c.
References guc_free(), guc_strdup(), MCXT_ALLOC_NO_OOM, newval, pfree(), pg_clean_ascii(), and WARNING.
bool check_bonjour | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1207 of file variable.c.
References GUC_check_errmsg, and newval.
bool check_canonical_path | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1059 of file variable.c.
References canonicalize_path(), and newval.
bool check_client_encoding | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 688 of file variable.c.
References encoding, GetDatabaseEncodingName(), GUC_check_errcode(), GUC_check_errdetail, guc_free(), guc_malloc(), guc_strdup(), InitializingParallelWorker, IsParallelWorker, IsTransactionState(), LOG, newval, pg_encoding_to_char, pg_valid_client_encoding(), and PrepareClientEncoding().
bool check_cluster_name | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1118 of file variable.c.
References guc_free(), guc_strdup(), MCXT_ALLOC_NO_OOM, newval, pfree(), pg_clean_ascii(), and WARNING.
bool check_datestyle | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 52 of file variable.c.
References check_datestyle(), DateOrder, DATEORDER_DMY, DATEORDER_MDY, DATEORDER_YMD, DateStyle, GetConfigOptionResetString(), GUC_check_errdetail, guc_free(), guc_malloc(), guc_strdup(), lfirst, list_free(), LOG, newval, pfree(), pg_strcasecmp(), pg_strncasecmp(), pstrdup(), source, SplitIdentifierString(), USE_GERMAN_DATES, USE_ISO_DATES, USE_POSTGRES_DATES, and USE_SQL_DATES.
Referenced by check_datestyle().
bool check_default_with_oids | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1220 of file variable.c.
References GUC_check_errcode(), GUC_check_errmsg, and newval.
bool check_effective_io_concurrency | ( | int * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1235 of file variable.c.
References GUC_check_errdetail, and newval.
bool check_log_timezone | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 418 of file variable.c.
References GUC_check_errdetail, GUC_check_errmsg, guc_malloc(), LOG, newval, pg_tz_acceptable(), and pg_tzset().
bool check_maintenance_io_concurrency | ( | int * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1249 of file variable.c.
References GUC_check_errdetail, and newval.
bool check_random_seed | ( | double * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 656 of file variable.c.
References guc_malloc(), LOG, PGC_S_INTERACTIVE, and source.
bool check_role | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 933 of file variable.c.
References current_role_is_superuser, ereport, errcode(), errmsg(), GetCurrentRoleId(), GetSessionUserId(), GETSTRUCT, GUC_check_errcode(), GUC_check_errmsg, guc_malloc(), HeapTupleIsValid, InitializingParallelWorker, InvalidOid, role_auth_extra::is_superuser, is_superuser(), IsTransactionState(), LOG, member_can_set_role(), newval, NOTICE, PGC_S_TEST, PointerGetDatum(), ReleaseSysCache(), role_auth_extra::roleid, SearchSysCache1(), and source.
bool check_session_authorization | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 815 of file variable.c.
References ereport, errcode(), errmsg(), GetAuthenticatedUserId(), GetSessionUserId(), GetSessionUserIsSuperuser(), GETSTRUCT, GUC_check_errcode(), GUC_check_errmsg, guc_malloc(), HeapTupleIsValid, InitializingParallelWorker, role_auth_extra::is_superuser, is_superuser(), IsTransactionState(), LOG, newval, NOTICE, PGC_S_TEST, PointerGetDatum(), ReleaseSysCache(), role_auth_extra::roleid, SearchSysCache1(), source, and superuser_arg().
bool check_ssl | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1263 of file variable.c.
References GUC_check_errmsg, and newval.
bool check_timezone | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 261 of file variable.c.
References CStringGetDatum(), DatumGetIntervalP(), DirectFunctionCall3, GUC_check_errdetail, GUC_check_errmsg, guc_malloc(), Int32GetDatum(), interval_in(), InvalidOid, LOG, 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.
bool check_timezone_abbreviations | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 487 of file variable.c.
References Assert, load_tzoffsets(), newval, PGC_S_DEFAULT, and source.
bool check_transaction_deferrable | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 624 of file variable.c.
References FirstSnapshotSet, GUC_check_errcode(), GUC_check_errmsg, InitializingParallelWorker, and IsSubTransaction().
bool check_transaction_isolation | ( | int * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 586 of file variable.c.
References FirstSnapshotSet, GUC_check_errcode(), GUC_check_errhint, GUC_check_errmsg, InitializingParallelWorker, IsSubTransaction(), IsTransactionState(), newval, RecoveryInProgress(), XACT_SERIALIZABLE, and XactIsoLevel.
bool check_transaction_read_only | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 546 of file variable.c.
References FirstSnapshotSet, GUC_check_errcode(), GUC_check_errmsg, InitializingParallelWorker, IsSubTransaction(), IsTransactionState(), newval, RecoveryInProgress(), and XactReadOnly.
const char * show_data_directory_mode | ( | void | ) |
Definition at line 1168 of file variable.c.
References buf, data_directory_mode, and snprintf.
const char * show_log_file_mode | ( | void | ) |
Definition at line 1180 of file variable.c.
References buf, Log_file_mode, and snprintf.
const char * show_log_timezone | ( | void | ) |
Definition at line 465 of file variable.c.
References log_timezone, and pg_get_timezone_name().
const char * show_random_seed | ( | void | ) |
Definition at line 677 of file variable.c.
const char * show_role | ( | void | ) |
Definition at line 1034 of file variable.c.
References GetCurrentRoleId(), OidIsValid, and role_string.
const char * show_timezone | ( | void | ) |
Definition at line 392 of file variable.c.
References pg_get_timezone_name(), and session_timezone.
const char * show_unix_socket_permissions | ( | void | ) |
Definition at line 1192 of file variable.c.
References buf, snprintf, and Unix_socket_permissions.