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 1104 of file variable.c.
References newval, and pgstat_report_appname().
void assign_client_encoding | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 784 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 1140 of file variable.c.
References AmStartupProcess, maintenance_io_concurrency, newval, and XLogPrefetchReconfigure().
void assign_random_seed | ( | double | newval, |
void * | extra | ||
) |
Definition at line 666 of file variable.c.
References DirectFunctionCall1, Float8GetDatum(), newval, and setseed().
void assign_role | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 1024 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 910 of file variable.c.
References role_auth_extra::is_superuser, role_auth_extra::roleid, and SetSessionAuthorization().
void assign_timezone | ( | const char * | newval, |
void * | extra | ||
) |
void assign_timezone_abbreviations | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 517 of file variable.c.
References InstallTimeZoneAbbrevs().
bool check_application_name | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1078 of file variable.c.
References guc_strdup(), MCXT_ALLOC_NO_OOM, newval, pfree(), pg_clean_ascii(), and WARNING.
bool check_bonjour | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
bool check_canonical_path | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
bool check_client_encoding | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 686 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 1114 of file variable.c.
References 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 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.
bool check_default_with_oids | ( | bool * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 1214 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 1229 of file variable.c.
References GUC_check_errdetail, and newval.
bool check_log_timezone | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 416 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 1243 of file variable.c.
References GUC_check_errdetail, and newval.
bool check_random_seed | ( | double * | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 654 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 931 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 813 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 | ||
) |
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 485 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 622 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 584 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 544 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 | ) |
const char* show_log_file_mode | ( | void | ) |
const char* show_log_timezone | ( | void | ) |
const char* show_random_seed | ( | void | ) |
Definition at line 675 of file variable.c.
const char* show_role | ( | void | ) |
Definition at line 1032 of file variable.c.
References GetCurrentRoleId(), OidIsValid, and role_string.
const char* show_timezone | ( | void | ) |
const char* show_unix_socket_permissions | ( | void | ) |