|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <dirent.h>#include <fcntl.h>#include <netdb.h>#include <sys/socket.h>#include <sys/stat.h>#include <unistd.h>#include <signal.h>#include <time.h>#include <sys/mman.h>#include "access/xlog_internal.h"#include "catalog/pg_authid_d.h"#include "catalog/pg_class_d.h"#include "catalog/pg_collation_d.h"#include "catalog/pg_database_d.h"#include "common/file_perm.h"#include "common/file_utils.h"#include "common/logging.h"#include "common/pg_prng.h"#include "common/restricted_token.h"#include "common/string.h"#include "common/username.h"#include "fe_utils/option_utils.h"#include "fe_utils/string_utils.h"#include "getopt_long.h"#include "mb/pg_wchar.h"#include "miscadmin.h"
Go to the source code of this file.
Data Structures | |
| struct | _stringlist |
| struct | tsearch_config_match |
Macros | |
| #define | AUTHTRUST_WARNING |
| #define | PG_CMD_DECL FILE *cmdfd |
| #define | PG_CMD_OPEN(cmd) |
| #define | PG_CMD_CLOSE() |
| #define | PG_CMD_PUTS(line) |
| #define | PG_CMD_PRINTF(fmt, ...) |
| #define | LETTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| #define | DIGITS "0123456789" |
| #define | MIN_BUFS_FOR_CONNS(nconns) ((nconns) * 10) |
| #define | AV_SLOTS_FOR_CONNS(nconns) ((nconns) / 6) |
Typedefs | |
| typedef struct _stringlist | _stringlist |
| typedef char * | save_locale_t |
| #define AUTHTRUST_WARNING |
Definition at line 208 of file initdb.c.
| #define DIGITS "0123456789" |
| #define LETTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| #define PG_CMD_CLOSE | ( | ) |
| #define PG_CMD_OPEN | ( | cmd | ) |
| #define PG_CMD_PUTS | ( | line | ) |
|
static |
Definition at line 445 of file initdb.c.
References fb(), pg_malloc(), pg_strdup(), _stringlist::str, and str.
Referenced by ecpg_start_test(), isolation_init(), isolation_start_test(), main(), psql_init(), and psql_start_test().
Definition at line 1547 of file initdb.c.
References _, appendPQExpBuffer(), appendPQExpBufferStr(), backend_exec, bki_file, boot_options, buf, check_ok(), PQExpBufferData::data, data_checksums, datlocale, debug, encodingid, encodingid_to_string(), escape_quotes_bki(), extra_options, fb(), free, icu_rules, initPQExpBuffer(), lc_collate, lc_ctype, locale_provider, MAXPGPATH, NAMEDATALEN, PG_CMD_CLOSE, PG_CMD_DECL, PG_CMD_OPEN, PG_CMD_PUTS, pg_log_error, pg_log_error_hint, printf, printfPQExpBuffer(), readfile(), replace_token(), snprintf, sprintf, termPQExpBuffer(), unsetenv, username, and wal_segment_size_mb.
Referenced by initialize_data_directory().
Definition at line 2571 of file initdb.c.
References authwarning, and fb().
Referenced by main().
|
static |
Definition at line 2299 of file initdb.c.
References fb(), is_encoding_supported_by_icu(), pg_encoding_to_char, pg_log_error, pg_log_error_detail, pg_log_error_hint, and progname.
Referenced by setup_locale_encoding().
Definition at line 995 of file initdb.c.
References fb(), pg_log_error, pg_log_error_hint, S_ISREG, and stat.
Referenced by setup_data_file_paths().
Definition at line 2264 of file initdb.c.
References fb(), locale, pg_encoding_to_char, pg_get_encoding_from_locale(), pg_log_error, pg_log_error_detail, pg_log_error_hint, PG_SQL_ASCII, PG_UTF8, and progname.
Referenced by setup_locale_encoding().
Definition at line 2201 of file initdb.c.
References fb(), locale, pg_fatal, pg_is_ascii(), pg_log_error, pg_log_error_hint, pg_strdup(), restore_global_locale(), save_global_locale(), and setlocale.
Referenced by setlocales().
|
static |
Definition at line 2596 of file initdb.c.
References authmethodhost, authmethodlocal, fb(), pg_fatal, pwfilename, and pwprompt.
Referenced by main().
Definition at line 2108 of file initdb.c.
References _, caught_signal, fb(), output_errno, output_failed, printf, and strerror.
Referenced by adjust_data_dir(), bootstrap_template1(), check_cluster_versions(), check_for_connection_status(), check_for_data_types_usage(), check_for_gist_inet_ops(), check_for_incompatible_polymorphics(), check_for_isn_and_int8_passing_mismatch(), check_for_new_tablespace_dir(), check_for_not_null_inheritance(), check_for_pg_role_prefix(), check_for_prepared_transactions(), check_for_tables_with_oids(), check_for_unicode_update(), check_for_user_defined_encoding_conversions(), check_for_user_defined_postfix_ops(), check_is_install_user(), check_loadable_libraries(), check_new_cluster_replication_slots(), check_new_cluster_subscription_configuration(), check_old_cluster_for_valid_slots(), check_old_cluster_subscription_state(), copy_subdir_files(), copy_xact_xlog_xid(), create_conflict_detection_slot(), create_data_directory(), create_logical_replication_slots(), create_new_objects(), create_script_for_old_cluster_deletion(), create_xlog_or_symlink(), disable_old_cluster(), generate_old_dump(), initialize_data_directory(), main(), main(), old_9_6_invalidate_hash_indexes(), prepare_new_cluster(), prepare_new_globals(), remove_new_subdir(), report_extension_updates(), set_frozenxids(), set_locale_and_encoding(), set_new_cluster_char_signedness(), setup_config(), and transfer_all_new_tablespaces().
Definition at line 1078 of file initdb.c.
References close, fb(), fd(), name, pg_prng_seed(), pg_prng_uint32(), prng_state, and snprintf.
Referenced by test_config_settings().
Definition at line 762 of file initdb.c.
References found_existing_pgdata, found_existing_xlogdir, made_new_pgdata, made_new_xlogdir, noclean, pg_data, pg_log_error, pg_log_info, rmtree(), success, and xlog_dir.
Referenced by main().
Definition at line 2889 of file initdb.c.
References _, check_ok(), fb(), found_existing_pgdata, made_new_pgdata, pg_check_dir(), pg_data, pg_dir_create_mode, pg_fatal, pg_log_error, pg_log_error_hint, pg_mkdir_p(), printf, progname, and warn_on_mount_point().
Referenced by initialize_data_directory().
Definition at line 2947 of file initdb.c.
References _, canonicalize_path(), check_ok(), fb(), found_existing_xlogdir, free, is_absolute_path, made_new_xlogdir, mkdir, pg_check_dir(), pg_data, pg_dir_create_mode, pg_fatal, pg_log_error, pg_log_error_hint, pg_mkdir_p(), printf, psprintf(), symlink, warn_on_mount_point(), and xlog_dir.
Referenced by initialize_data_directory().
Definition at line 834 of file initdb.c.
References enc, pg_strdup(), and sprintf.
Referenced by bootstrap_template1().
Definition at line 406 of file initdb.c.
References escape_single_quotes_ascii(), and pg_fatal.
Referenced by escape_quotes_bki(), main(), replace_guc_value(), setup_auth(), setup_privileges(), and setup_schema().
Definition at line 422 of file initdb.c.
References data, escape_quotes(), fb(), free, and pg_malloc().
Referenced by bootstrap_template1().
Definition at line 940 of file initdb.c.
References fb(), free, i, tsearch_config_match::langname, pg_strcasecmp(), pg_strdup(), tsearch_config_match::tsconfname, and tsearch_config_languages.
Referenced by setup_text_search().
Definition at line 846 of file initdb.c.
References enc, fb(), pg_fatal, and pg_valid_server_encoding.
Referenced by setup_locale_encoding().
Definition at line 815 of file initdb.c.
References fb(), get_user_name_or_exit(), pg_log_error, pg_log_error_hint, pg_strdup(), progname, and username.
Referenced by main().
Definition at line 1656 of file initdb.c.
References _, fb(), fprintf, free, pg_fatal, pg_get_line(), pg_strip_crlf(), printf, pwfilename, pwprompt, simple_prompt(), and superuser_password.
Referenced by main().
Definition at line 644 of file initdb.c.
References DIGITS, fb(), and LETTERS.
Referenced by replace_guc_value().
Definition at line 2319 of file initdb.c.
References fb(), pg_fatal, pg_free(), pg_malloc(), and pg_realloc().
Referenced by setlocales().
Definition at line 2372 of file initdb.c.
References fb(), i, and pg_fatal.
Referenced by setlocales().
Definition at line 3043 of file initdb.c.
References _, backend_exec, backend_options, bootstrap_template1(), check_ok(), create_data_directory(), create_xlog_or_symlink(), PQExpBufferData::data, DEVNULL, dictionary_file, extra_options, fb(), free, i, initPQExpBuffer(), lengthof, load_plpgsql(), make_postgres(), make_template0(), mkdir, PG_CMD_CLOSE, PG_CMD_DECL, PG_CMD_OPEN, pg_data, pg_dir_create_mode, pg_fatal, pg_mode_mask, printf, printfPQExpBuffer(), psprintf(), set_null_conf(), setup_auth(), setup_collation(), setup_config(), setup_depend(), setup_description(), setup_privileges(), setup_run_file(), setup_schema(), setup_signals(), subdirs, system_constraints_file, system_functions_file, system_views_file, termPQExpBuffer(), test_config_settings(), vacuum_db(), and write_version_file().
Referenced by main().
Definition at line 1991 of file initdb.c.
References PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 2142 of file initdb.c.
References buf, DATEORDER_DMY, DATEORDER_MDY, DATEORDER_YMD, fb(), locale, my_strftime(), restore_global_locale(), save_global_locale(), setlocale, and tm.
Referenced by setup_config().
Definition at line 3157 of file initdb.c.
References _, add_stringlist_item(), appendPQExpBuffer(), appendPQExpBufferStr(), appendShellString(), auth_methods_host, auth_methods_local, authmethodhost, authmethodlocal, authwarning, buf, builtin_locale_specified, canonicalize_path(), check_authmethod_unspecified(), check_authmethod_valid(), check_need_password(), check_ok(), cleanup_directories_atexit(), createPQExpBuffer(), data_checksums, datlocale, debug, default_text_search_config, destroyPQExpBuffer(), do_sync, encoding, extra_guc_names, extra_guc_values, extra_options, fb(), get_id(), get_parent_directory(), get_progname(), get_restricted_token(), get_su_pwd(), getopt_long(), icu_locale_specified, icu_rules, initialize_data_directory(), IsValidWalSegSize, join_path_components(), lc_collate, lc_ctype, lc_messages, lc_monetary, lc_numeric, lc_time, locale, locale_provider, make_native_path(), MAXPGPATH, no_argument, noclean, noinstructions, optarg, optind, option_parse_int(), parse_sync_method(), pfree(), pg_check_dir(), pg_ctl_path, pg_data, PG_DIR_MODE_GROUP, pg_fatal, PG_IOLBF, pg_log_error, pg_log_error_hint, pg_log_warning, pg_log_warning_hint, pg_logging_init(), pg_strdup(), PG_TEXTDOMAIN, pgdata_native, printf, progname, psprintf(), pwfilename, pwprompt, required_argument, set_info_version(), set_pglocale_pgservice(), SetDataDirectoryCreatePerm(), setup_bin_paths(), setup_data_file_paths(), setup_locale_encoding(), setup_pgdata(), setup_text_search(), share_path, show_setting, strlcpy(), success, sync_data_files, sync_method, sync_only, usage(), username, wal_segment_size_mb, and xlog_dir.
Definition at line 2064 of file initdb.c.
References CppAsString2, fb(), and PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 2010 of file initdb.c.
References CppAsString2, fb(), and PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 1268 of file initdb.c.
References fb(), pg_malloc(), snprintf, and wal_segment_size_mb.
Referenced by setup_config().
Definition at line 676 of file initdb.c.
References StringInfoData::data, fb(), infile(), initStringInfo(), pfree(), pg_fatal, pg_get_line_buf(), pg_malloc(), pg_realloc(), and pg_strdup().
Referenced by bootstrap_template1(), setup_config(), and setup_run_file().
|
static |
Definition at line 528 of file initdb.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), createPQExpBuffer(), escape_quotes(), fb(), free, guc_value_requires_quotes(), i, Max, newline, pg_realloc_array, and pg_strncasecmp().
Referenced by setup_config().
Definition at line 473 of file initdb.c.
References fb(), free, i, newline, and pg_malloc().
Referenced by bootstrap_template1(), and setup_config().
|
static |
Definition at line 389 of file initdb.c.
References fb(), free, pg_fatal, and setlocale.
Referenced by check_locale_name(), and locale_date_order().
|
static |
Definition at line 365 of file initdb.c.
References fb(), pg_fatal, pg_strdup(), and setlocale.
Referenced by check_locale_name(), and locale_date_order().
Definition at line 1757 of file findtimezone.c.
References fb(), identify_system_timezone(), share_path, snprintf, tzdirpath, and validate_zone().
Referenced by test_config_settings().
Definition at line 1944 of file initdb.c.
References fb(), infoversion, pg_strdup(), and snprintf.
Referenced by main().
Definition at line 986 of file initdb.c.
References filename, psprintf(), and share_path.
Referenced by setup_data_file_paths().
Definition at line 1049 of file initdb.c.
References conf_file, fb(), free, PG_BINARY_W, pg_data, pg_fatal, and psprintf().
Referenced by initialize_data_directory().
Definition at line 2423 of file initdb.c.
References _, check_locale_name(), datlocale, fb(), icu_language_tag(), icu_validate_locale(), lc_collate, lc_ctype, lc_messages, lc_monetary, lc_numeric, lc_time, locale, locale_provider, pg_fatal, pg_free(), and printf.
Referenced by setup_locale_encoding().
Definition at line 1639 of file initdb.c.
References escape_quotes(), PG_CMD_PRINTF, PG_CMD_PUTS, superuser_password, and username.
Referenced by initialize_data_directory().
Definition at line 2647 of file initdb.c.
References argv0, backend_exec, bin_path, canonicalize_path(), fb(), find_my_exec(), find_other_exec(), get_share_path(), is_absolute_path, last_dir_separator(), MAXPGPATH, PG_BACKEND_VERSIONSTR, pg_fatal, pg_malloc(), progname, share_path, and strlcpy().
Referenced by main().
Definition at line 1770 of file initdb.c.
References PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 1285 of file initdb.c.
References _, authmethodhost, authmethodlocal, AUTHTRUST_WARNING, check_ok(), conf_file, DATEORDER_DMY, DATEORDER_MDY, DATEORDER_YMD, DEFAULT_BACKEND_FLUSH_AFTER, DEFAULT_BGWRITER_FLUSH_AFTER, DEFAULT_CHECKPOINT_FLUSH_AFTER, DEFAULT_MAX_WAL_SEGS, DEFAULT_MIN_WAL_SEGS, DEFAULT_PGSOCKET_DIR, default_text_search_config, default_timezone, dynamic_shared_memory_type, err(), extra_guc_names, extra_guc_values, fb(), hba_file, ident_file, lc_messages, lc_monetary, lc_numeric, lc_time, locale_date_order(), MAXPGPATH, n_av_slots, n_buffers, n_connections, _stringlist::next, pg_data, pg_dir_create_mode, PG_DIR_MODE_GROUP, pg_fatal, pg_file_create_mode, pg_malloc_array, pg_strdup(), pretty_wal_size(), readfile(), replace_guc_value(), replace_token(), snprintf, sprintf, and writefile().
Referenced by initialize_data_directory().
Definition at line 2791 of file initdb.c.
References bin_path, bki_file, check_input(), conf_file, debug, dictionary_file, fb(), features_file, fprintf, hba_file, ident_file, info_schema_file, pg_data, set_input(), share_path, show_setting, system_constraints_file, system_functions_file, system_views_file, and username.
Referenced by main().
Definition at line 1715 of file initdb.c.
References PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 1749 of file initdb.c.
References PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 2684 of file initdb.c.
References _, check_icu_locale_encoding(), check_locale_encoding(), datlocale, encoding, encodingid, fb(), get_encoding_id(), lc_collate, lc_ctype, lc_messages, lc_monetary, lc_numeric, lc_time, locale_provider, pg_encoding_to_char, pg_fatal, pg_get_encoding_from_locale(), pg_log_error, pg_log_error_detail, pg_log_error_hint, PG_SQL_ASCII, PG_UTF8, pg_valid_server_encoding_id, printf, progname, and setlocales().
Referenced by main().
Definition at line 2610 of file initdb.c.
References canonicalize_path(), fb(), pg_data, pg_fatal, pg_log_error, pg_log_error_hint, pg_strdup(), pgdata_native, and setenv.
Referenced by main().
Definition at line 1803 of file initdb.c.
References CppAsString2, escape_quotes(), fb(), PG_CMD_PRINTF, PG_CMD_PUTS, and username.
Referenced by initialize_data_directory().
Definition at line 1728 of file initdb.c.
References fb(), filename, free, PG_CMD_PUTS, and readfile().
Referenced by initialize_data_directory(), and setup_schema().
Definition at line 1971 of file initdb.c.
References escape_quotes(), fb(), features_file, info_schema_file, infoversion, PG_CMD_PRINTF, and setup_run_file().
Referenced by initialize_data_directory().
Definition at line 2869 of file initdb.c.
References fb(), pqsignal, SIGHUP, SIGPIPE, SIGQUIT, and trapsig().
Referenced by initialize_data_directory().
Definition at line 2835 of file initdb.c.
References _, default_text_search_config, fb(), find_matching_ts_config(), lc_ctype, pg_log_info, pg_log_warning, and printf.
Referenced by main().
Definition at line 1120 of file initdb.c.
References _, AV_SLOTS_FOR_CONNS, choose_dsm_implementation(), default_timezone, dynamic_shared_memory_type, fb(), i, MIN_BUFS_FOR_CONNS, n_av_slots, n_buffers, n_connections, printf, select_default_timezone(), share_path, and test_specific_config_settings().
Referenced by initialize_data_directory().
|
static |
Definition at line 1223 of file initdb.c.
References appendPQExpBuffer(), appendShellString(), backend_exec, boot_options, PQExpBufferData::data, DEVNULL, dynamic_shared_memory_type, extra_guc_names, extra_guc_values, extra_options, fb(), initPQExpBuffer(), _stringlist::next, printfPQExpBuffer(), and termPQExpBuffer().
Referenced by test_config_settings().
|
static |
Definition at line 2097 of file initdb.c.
References caught_signal, fb(), pqsignal, and trapsig().
Referenced by setup_signals(), and trapsig().
Definition at line 2516 of file initdb.c.
Definition at line 2000 of file initdb.c.
References PG_CMD_PUTS.
Referenced by initialize_data_directory().
Definition at line 3030 of file initdb.c.
References error(), pg_log_error_detail, and pg_log_error_hint.
Referenced by create_data_directory(), and create_xlog_or_symlink().
Definition at line 1026 of file initdb.c.
References fb(), fprintf, free, PG_BINARY_W, pg_data, pg_fatal, psprintf(), and version_file.
Referenced by initialize_data_directory().
Definition at line 96 of file initdb.c.
Referenced by main().
Definition at line 157 of file initdb.c.
Referenced by check_need_password(), main(), and setup_config().
Definition at line 158 of file initdb.c.
Referenced by check_need_password(), main(), and setup_config().
Definition at line 213 of file initdb.c.
Referenced by check_authmethod_unspecified(), and main().
Definition at line 260 of file initdb.c.
Referenced by bootstrap_template1(), initialize_data_directory(), setup_bin_paths(), and test_specific_config_settings().
|
static |
Definition at line 226 of file initdb.c.
Referenced by initialize_data_directory().
Definition at line 259 of file initdb.c.
Referenced by make_relative_path(), setup_bin_paths(), and setup_data_file_paths().
|
static |
Definition at line 177 of file initdb.c.
Referenced by bootstrap_template1(), and setup_data_file_paths().
Definition at line 225 of file initdb.c.
Referenced by bootstrap_template1(), and test_specific_config_settings().
Definition at line 193 of file initdb.c.
Referenced by check_ok(), and trapsig().
|
static |
Definition at line 180 of file initdb.c.
Referenced by set_null_conf(), setup_config(), and setup_data_file_paths().
Definition at line 167 of file initdb.c.
Referenced by bootstrap_template1(), and main().
Definition at line 149 of file initdb.c.
Referenced by bootstrap_template1(), main(), setlocales(), and setup_locale_encoding().
Definition at line 161 of file initdb.c.
Referenced by bootstrap_template1(), main(), pg_regcomp(), reconstruct_from_incremental_file(), setup_data_file_paths(), slice_check(), and write_reconstructed_file().
Definition at line 152 of file initdb.c.
Referenced by main(), setup_config(), and setup_text_search().
Definition at line 203 of file initdb.c.
Referenced by setup_config(), and test_config_settings().
|
static |
Definition at line 181 of file initdb.c.
Referenced by initialize_data_directory(), and setup_data_file_paths().
Definition at line 164 of file initdb.c.
Referenced by main(), sync_target_dir(), and update_controlfile().
Definition at line 202 of file initdb.c.
Referenced by setup_config(), test_config_settings(), and test_specific_config_settings().
Definition at line 139 of file initdb.c.
Referenced by append_btree_pattern(), append_database_pattern(), append_heap_pattern(), append_relation_pattern(), append_relation_pattern_helper(), append_schema_pattern(), appendReloptionsArray(), appendStringLiteral(), ascii(), assign_client_encoding(), builtin_validate_locale(), cache_locale_time(), cache_single_string(), canonicalize_path_enc(), CATALOG(), check_client_encoding(), check_encoding_locale_matches(), chr(), createdb(), db_encoding_convert(), dequote_downcase_identifier(), dumpDatabase(), encoding_conflicts_ascii(), entry_alloc(), exec_command_encoding(), fmtIdEnc(), fmtQualifiedIdEnc(), get_encoding_name_for_icu(), get_json_format(), getJsonEncodingConst(), is_encoding_supported_by_icu(), iso8859_to_utf8(), latin2mic(), latin2mic_with_table(), LocalToUtf(), lookup_collation(), main(), makeJsonByteaToTextConversion(), makeJsonFormat(), makeJsonLexContextCstringLen(), makeJsonLexContextIncremental(), mbvalidate(), mic2latin(), mic2latin_with_table(), patternToSQLRegex(), pg_any_to_server(), pg_encoding_dsplen(), pg_encoding_max_length(), pg_encoding_max_length_sql(), pg_encoding_mb2wchar_with_len(), pg_encoding_mbcliplen(), pg_encoding_mblen(), pg_encoding_mblen_bounded(), pg_encoding_mblen_or_incomplete(), pg_encoding_set_invalid(), pg_encoding_to_char(), PG_encoding_to_char(), pg_encoding_verifymbchar(), pg_encoding_verifymbstr(), pg_encoding_wchar2mb_with_len(), pg_server_to_any(), pg_valid_server_encoding_id(), pg_verify_mbstr(), pg_verify_mbstr_len(), pg_wcsformat(), pg_wcssize(), pg_wcswidth(), PGLC_localeconv(), pgss_store(), PQdsplen(), PQenv2encoding(), PQescapeStringInternal(), PQmblen(), PQmblenBounded(), PQsetClientEncoding(), PrepareClientEncoding(), print_aligned_text(), print_aligned_vertical(), processEncodingEntry(), psql_scan_setup(), quote_if_needed(), report_invalid_encoding(), reportErrorPosition(), SetClientEncoding(), SetDatabaseEncoding(), setFmtEncoding(), SetMessageEncoding(), setup_locale_encoding(), splitTableColumnsSpec(), strip_quotes(), strlen_max_width(), strtokx(), utf8_to_iso8859(), utf8_to_win(), UtfToLocal(), win_to_utf8(), and xml_recv().
|
static |
Definition at line 176 of file initdb.c.
Referenced by bootstrap_template1(), and setup_locale_encoding().
|
static |
Definition at line 159 of file initdb.c.
Referenced by main(), setup_config(), and test_specific_config_settings().
|
static |
Definition at line 160 of file initdb.c.
Referenced by main(), setup_config(), and test_specific_config_settings().
|
static |
Definition at line 229 of file initdb.c.
Referenced by bootstrap_template1(), initialize_data_directory(), main(), and test_specific_config_settings().
|
static |
Definition at line 183 of file initdb.c.
Referenced by setup_data_file_paths(), and setup_schema().
Definition at line 189 of file initdb.c.
Referenced by cleanup_directories_atexit(), and create_data_directory().
Definition at line 191 of file initdb.c.
Referenced by cleanup_directories_atexit(), and create_xlog_or_symlink().
|
static |
Definition at line 178 of file initdb.c.
Referenced by setup_config(), and setup_data_file_paths().
Definition at line 151 of file initdb.c.
Referenced by bootstrap_template1(), and main().
|
static |
Definition at line 179 of file initdb.c.
Referenced by setup_config(), and setup_data_file_paths().
|
static |
Definition at line 182 of file initdb.c.
Referenced by setup_data_file_paths(), and setup_schema().
|
static |
Definition at line 192 of file initdb.c.
Referenced by set_info_version(), and setup_schema().
Definition at line 141 of file initdb.c.
Referenced by bootstrap_template1(), get_control_data(), main(), setlocales(), and setup_locale_encoding().
Definition at line 142 of file initdb.c.
Referenced by bootstrap_template1(), get_control_data(), main(), setlocales(), setup_locale_encoding(), and setup_text_search().
Definition at line 146 of file initdb.c.
Referenced by get_control_data(), main(), setlocales(), setup_config(), and setup_locale_encoding().
Definition at line 143 of file initdb.c.
Referenced by get_control_data(), main(), pg_localeconv_r(), setlocales(), setup_config(), and setup_locale_encoding().
Definition at line 144 of file initdb.c.
Referenced by get_control_data(), main(), pg_localeconv_r(), setlocales(), setup_config(), and setup_locale_encoding().
Definition at line 145 of file initdb.c.
Referenced by get_control_data(), main(), setlocales(), setup_config(), and setup_locale_encoding().
Definition at line 140 of file initdb.c.
Referenced by check_locale_encoding(), check_locale_name(), locale_date_order(), main(), and setlocales().
|
static |
Definition at line 147 of file initdb.c.
Referenced by bootstrap_template1(), main(), setlocales(), and setup_locale_encoding().
Definition at line 188 of file initdb.c.
Referenced by cleanup_directories_atexit(), and create_data_directory().
Definition at line 190 of file initdb.c.
Referenced by cleanup_directories_atexit(), and create_xlog_or_symlink().
|
static |
Definition at line 200 of file initdb.c.
Referenced by setup_config(), and test_config_settings().
|
static |
Definition at line 201 of file initdb.c.
Referenced by setup_config(), and test_config_settings().
|
static |
Definition at line 199 of file initdb.c.
Referenced by setup_config(), and test_config_settings().
Definition at line 162 of file initdb.c.
Referenced by cleanup_directories_atexit(), and main().
|
static |
Definition at line 195 of file initdb.c.
Referenced by check_ok().
Definition at line 194 of file initdb.c.
Referenced by check_ok().
Definition at line 138 of file initdb.c.
Referenced by check_data_dir(), check_single_dir(), cleanup_directories_atexit(), create_data_directory(), create_xlog_or_symlink(), initialize_data_directory(), main(), set_null_conf(), setup_config(), setup_data_file_paths(), setup_pgdata(), and write_version_file().
|
static |
Definition at line 196 of file initdb.c.
Referenced by main(), and setup_pgdata().
Definition at line 175 of file initdb.c.
Referenced by check_icu_locale_encoding(), check_locale_encoding(), create_data_directory(), get_id(), main(), setup_bin_paths(), setup_locale_encoding(), and usage().
Definition at line 155 of file initdb.c.
Referenced by check_need_password(), get_su_pwd(), and main().
Definition at line 154 of file initdb.c.
Referenced by check_need_password(), get_su_pwd(), and main().
Definition at line 135 of file initdb.c.
Referenced by main(), ParseTzFile(), select_default_timezone(), set_input(), setup_bin_paths(), setup_data_file_paths(), and test_config_settings().
Definition at line 166 of file initdb.c.
Referenced by main(), and setup_data_file_paths().
Definition at line 231 of file initdb.c.
Referenced by initialize_data_directory().
Definition at line 187 of file initdb.c.
Referenced by add_client_identification(), check_log_connections(), checkLevel(), cleanup_directories_atexit(), ClockSweepTick(), do_connect(), do_copy(), dsm_impl_mmap(), exec_command_a(), exec_command_C(), exec_command_cd(), exec_command_connect(), exec_command_copy(), exec_command_d(), exec_command_dfo(), exec_command_elif(), exec_command_else(), exec_command_endif(), exec_command_f(), exec_command_getenv(), exec_command_html(), exec_command_include(), exec_command_list(), exec_command_lo(), exec_command_out(), exec_command_password(), exec_command_prompt(), exec_command_pset(), exec_command_s(), exec_command_set(), exec_command_setenv(), exec_command_shell_escape(), exec_command_t(), exec_command_T(), exec_command_timing(), exec_command_unset(), exec_command_watch(), exec_command_x(), exec_command_z(), ExecPartitionCheck(), ExecQueryAndProcessResults(), ExecQueryTuples(), extended_statistics_update(), handle_oauth_sasl_error(), handle_token_response(), HandleCopyResult(), hex_decode_safe(), is_true_boolean_expression(), main(), MainLoop(), parse_lsn(), parse_oauth_json(), parse_tli(), PostmasterMain(), PredicateLockPageSplit(), PrintQueryResult(), process_command_g_options(), ProcessProcSignalBarrier(), RegisterDynamicBackgroundWorker(), report_result(), SetResultVariables(), SharedFileSetAttach(), StoreQueryTuple(), vacuumlo(), and winsock_strerror().
Definition at line 156 of file initdb.c.
Referenced by get_su_pwd(), and setup_auth().
|
static |
Definition at line 170 of file initdb.c.
Referenced by _allocAH(), CreateArchive(), main(), main(), parse_sync_method(), and sync_target_dir().
|
static |
Definition at line 184 of file initdb.c.
Referenced by initialize_data_directory(), and setup_data_file_paths().
|
static |
Definition at line 185 of file initdb.c.
Referenced by initialize_data_directory(), and setup_data_file_paths().
|
static |
Definition at line 186 of file initdb.c.
Referenced by initialize_data_directory(), and setup_data_file_paths().
|
static |
Definition at line 869 of file initdb.c.
Referenced by find_matching_ts_config().
Definition at line 153 of file initdb.c.
Referenced by add_client_identification(), BackgroundWorkerInitializeConnection(), bootstrap_template1(), check_password(), dumpUserConfig(), get_id(), get_object_address_defacl(), get_object_address_usermapping(), get_user_name(), getObjectDescription(), getObjectIdentityParts(), has_any_column_privilege_name_id(), has_column_privilege_name_id_attnum(), has_column_privilege_name_id_name(), has_database_privilege_name_id(), has_database_privilege_name_name(), has_foreign_data_wrapper_privilege_name_id(), has_foreign_data_wrapper_privilege_name_name(), has_function_privilege_name_id(), has_function_privilege_name_name(), has_language_privilege_name_id(), has_language_privilege_name_name(), has_largeobject_privilege_name_id(), has_parameter_privilege_name_name(), has_schema_privilege_name_id(), has_schema_privilege_name_name(), has_sequence_privilege_name_id(), has_server_privilege_name_id(), has_server_privilege_name_name(), has_table_privilege_name_id(), has_tablespace_privilege_name_id(), has_tablespace_privilege_name_name(), has_type_privilege_name_id(), has_type_privilege_name_name(), InitPostgres(), log_status_format(), main(), mock_scram_secret(), passwordFromFile(), pg_fe_getusername(), pg_has_role_name_id(), pg_has_role_name_name(), PostgresMain(), PostgresSingleUserMain(), process_pgfdw_appname(), prompt_for_password(), scram_mock_salt(), scram_verify_plain_password(), setup_auth(), setup_data_file_paths(), and setup_privileges().
|
static |
Definition at line 169 of file initdb.c.
Referenced by bootstrap_template1(), main(), and pretty_wal_size().
Definition at line 168 of file initdb.c.
Referenced by cleanup_directories_atexit(), create_xlog_or_symlink(), and main().