|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"
Go to the source code of this file.
Functions | |
| static void * | pg_malloc_internal (size_t size, int flags) |
| void * | pg_malloc (size_t size) |
| void * | pg_malloc0 (size_t size) |
| void * | pg_malloc_extended (size_t size, int flags) |
| void * | pg_realloc (void *ptr, size_t size) |
| char * | pg_strdup (const char *in) |
| void | pg_free (void *ptr) |
| void * | palloc (Size size) |
| void * | palloc0 (Size size) |
| void * | palloc_extended (Size size, int flags) |
| void | pfree (void *pointer) |
| char * | pstrdup (const char *in) |
| char * | pnstrdup (const char *in, Size size) |
| void * | repalloc (void *pointer, Size size) |
Definition at line 115 of file fe_memutils.c.
References pg_malloc_internal().
Definition at line 121 of file fe_memutils.c.
References MCXT_ALLOC_ZERO, and pg_malloc_internal().
Definition at line 127 of file fe_memutils.c.
References pg_malloc_internal().
Definition at line 133 of file fe_memutils.c.
References pg_free().
Definition at line 105 of file fe_memutils.c.
References free.
Referenced by _printTocEntry(), advanceConnectionState(), append_depends_on_extension(), appendQualifiedRelation(), avlFree(), bool_substitute_hook(), calculate_totals(), check_exec(), check_for_data_types_usage(), check_for_incompatible_polymorphics(), check_publisher(), checksum_file(), close_walfile(), copy_file_blocks(), copyFile(), create_script_for_old_cluster_deletion(), datapagemap_print(), dir_close(), dir_free(), dir_open_for_write(), do_connect(), do_watch(), dumpFunc(), dumpRoleMembership(), dumpSequence(), EndCompressor(), EndCompressorNone(), FindStreamingStart(), free_command(), free_db_and_rel_infos(), free_rel_infos(), free_retrieved_objects(), free_socket_set(), FreeSlruRead(), FreeSlruWrite(), get_control_data(), get_db_rel_and_slot_infos(), get_loadable_libraries(), get_publisher_databases(), get_restricted_token(), get_standby_sysid(), getTimelineHistory(), icu_language_tag(), init_libpq_conn(), IssueACLPerBlob(), IssueCommandPerBlob(), libpq_get_current_wal_insert_lsn(), listSchemas(), main(), make_rfile(), makeAlterConfigCommand(), modify_subscriber_sysid(), open_walfile(), parallel_exec_prog(), parallel_transfer_all_new_dbs(), parseAclItem(), parseCommandLine(), parseQuery(), perform_rewind(), pfree(), printCrosstab(), PrintResultInCrosstab(), process_queued_fetch_requests(), rankSort(), readCommandResponse(), ReadHead(), readMessageFromPipe(), ReceiveXlogStream(), reconstruct_from_incremental_file(), reindex_one_database(), restore_all_databases(), RestoreArchive(), retrieve_objects(), run_schedule(), SendQuery(), set_replication_progress(), setlocales(), setup_publisher(), SetVariable(), simple_oid_list_destroy(), simple_ptr_list_destroy(), simple_string_list_destroy(), SlruReadSwitchPageSlow(), SlruWriteSwitchPageSlow(), SortTocFromFile(), SyncVariables(), tar_close(), tar_free(), tar_open_for_write(), test_gb18030_page_multiple(), transfer_all_new_dbs(), upgrade_task_free(), upgrade_task_run(), vacuum_all_databases(), vacuum_one_database(), verify_tar_file(), WriteDataChunks(), and WriteToc().
Definition at line 47 of file fe_memutils.c.
References pg_malloc_internal().
Referenced by _CustomReadFunc(), _PrintFileData(), _skipData(), ahprintf(), archprintf(), checksum_file(), copy_file_blocks(), copyFile(), CreateWalTarMethod(), decide_file_actions(), do_watch(), escape_quotes_bki(), ExecuteSqlCommandBuf(), expr_scanner_get_substring(), find_other_exec_or_die(), get_comma_elts(), get_dbname_oid_list_from_mfile(), get_exec_path(), get_pg_version(), getLOs(), icu_language_tag(), InitCompressorNone(), libpq_fetch_file(), load_backup_manifest(), main(), parse_manifest_file(), parseScriptWeight(), parseVariable(), pretty_wal_size(), print_aligned_vertical(), process_directory_recursively(), process_queued_fetch_requests(), pset_quoted_string(), quote_identifier(), quote_if_needed(), read_controlfile(), read_file_contents(), ReadDataFromArchiveNone(), readfile(), readMessageFromPipe(), ReadStr(), reconstruct_from_incremental_file(), replace_token(), setup_bin_paths(), simple_string_list_append(), slurpFile(), sql_exec(), sql_exec_searchtables(), StartRestoreLO(), strtokx(), tarPrintf(), test_gb18030_page_multiple(), and verify_tar_file().
Definition at line 53 of file fe_memutils.c.
References MCXT_ALLOC_ZERO, and pg_malloc_internal().
Referenced by _discoverArchiveFormat(), CreateWalTarMethod(), dir_open_for_write(), FindStreamingStart(), and make_outputdirs().
Definition at line 59 of file fe_memutils.c.
References pg_malloc_internal().
Referenced by do_lo_import(), and pg_log_generic_v().
Definition at line 23 of file fe_memutils.c.
References _, EXIT_FAILURE, fb(), fprintf, malloc, MCXT_ALLOC_NO_OOM, MCXT_ALLOC_ZERO, and MemSet.
Referenced by palloc(), palloc0(), palloc_extended(), pg_malloc(), pg_malloc0(), and pg_malloc_extended().
Definition at line 65 of file fe_memutils.c.
References _, EXIT_FAILURE, fb(), fprintf, and realloc.
Referenced by addlitchar(), datapagemap_add(), exec_command_set(), icu_language_tag(), main(), read_file_contents(), readMessageFromPipe(), repalloc(), and replaceVariable().
Definition at line 85 of file fe_memutils.c.
References _, EXIT_FAILURE, fb(), and fprintf.
Referenced by _allocAH(), _ArchiveEntry(), _ArchiveEntry(), _becomeUser(), _check_database_version(), _getObjectDescription(), _selectOutputSchema(), _selectTableAccessMethod(), _selectTablespace(), _tarGetHeader(), add_one_elt(), add_stringlist_item(), add_stringlist_item(), adjust_data_dir(), adjust_data_dir(), append_depends_on_extension(), ArchiveEntry(), bool_substitute_hook(), check_locale_name(), check_publisher(), check_required_directory(), check_subscriber(), CloneArchive(), collectComments(), collectRoleNames(), collectSecLabels(), comp_keyword_case_substitute_hook(), concat_conninfo_dbname(), ConnectDatabaseAhx(), constructConnStr(), convertRegProcReference(), convertTSFunction(), create_logical_replication_slot(), create_script_for_old_cluster_deletion(), createBoundaryObjects(), CreateWalDirectoryMethod(), describeOneTableDetails(), describeRoles(), dir_open_for_write(), do_pset(), dumpAccessMethod(), dumpAttrDef(), dumpBaseType(), dumpCollation(), dumpCompositeType(), dumpConstraint(), dumpConversion(), dumpDatabase(), dumpDomain(), dumpEnumType(), dumpEventTrigger(), dumpExtension(), dumpForeignDataWrapper(), dumpForeignServer(), dumpIndex(), dumpNamespace(), dumpOpclass(), dumpOpfamily(), dumpOptionsFromRestoreOptions(), dumpPolicy(), dumpProcLang(), dumpPublication(), dumpRangeType(), dumpRoleGUCPrivs(), dumpRule(), dumpSearchPath(), dumpSequence(), dumpStatisticsExt(), dumpSubscription(), dumpTable(), dumpTableConstraintComment(), dumpTableData(), dumpTableSchema(), dumpTablespaces(), dumpTrigger(), dumpTSConfig(), dumpTSDictionary(), dumpTSParser(), dumpTSTemplate(), dumpUndefinedType(), echo_substitute_hook(), encodingid_to_string(), exec_command_g(), exec_command_gset(), exec_command_password(), exec_command_set(), fetch_count_substitute_hook(), find_matching_ts_config(), FindDbnameInConnOpts(), fix_path_separator(), flagInhAttrs(), flagInhIndexes(), flagInhTables(), format_numeric_locale(), get_base_conninfo(), get_comma_elts(), get_conninfo_value(), get_control_data(), get_db_infos(), get_id(), get_language_name(), get_loadable_libraries(), get_opts(), get_restricted_token(), get_sock_dir(), get_sub_conninfo(), get_synchronized_snapshot(), get_tablespace_paths(), get_template0_info(), get_user_info(), getAccessMethods(), getAggregates(), getCollations(), getConstraints(), getConversions(), getDefaultACLs(), getDomainConstraints(), getEventTriggers(), getExtendedStatistics(), getExtensions(), getForeignDataWrappers(), getForeignServers(), getFormattedTypeName(), getFuncs(), getIndexes(), getLOs(), getNamespaces(), getOpclasses(), getOperators(), getOpfamilies(), getPolicies(), getProcLangs(), getPublications(), getPublicationTables(), getRelationStatistics(), getRules(), gets_fromFile(), getSubscriptionRelations(), getSubscriptions(), getTableAttrs(), getTables(), getTriggers(), getTSConfigurations(), getTSDictionaries(), getTSParsers(), getTSTemplates(), getTypes(), getVariable(), handle_args(), histcontrol_substitute_hook(), histsize_substitute_hook(), identify_target_directory(), ignoreeof_substitute_hook(), InitDiscoverCompressFileHandle(), initializeInput(), insert_filehash_entry(), IssueACLPerBlob(), IssueCommandPerBlob(), keepwal_add_entry(), listSchemas(), load_resultmap(), lookupCreateVariable(), main(), main(), MainLoop(), makeAlterConfigCommand(), open_result_files(), parallel_exec_prog(), parallel_transfer_all_new_dbs(), parse_psql_options(), parse_slash_copy(), parseAclItem(), parseCommandLine(), parseQuery(), ParseScript(), parseScriptWeight(), pg_send_history(), postprocess_sql_command(), printTableAddFooter(), printTableSetFooter(), process_backslash_command(), process_old_cluster_logical_slot_infos(), process_rel_infos(), process_source_file(), process_target_file(), processEncodingEntry(), processExtensionTables(), processSearchPathEntry(), progress_update_filename(), psql_get_variable(), psqlscan_push_new_buffer(), pstrdup(), putVariable(), read_post_opts(), readfile(), ReconnectToServer(), regression_main(), RestoreArchive(), run_schedule(), run_simple_query(), RunIdentifySystem(), sanitize_line(), save_global_locale(), savePsetInfo(), search_directory(), sendCommand(), set_info_version(), setDecimalLocale(), setup(), setup_config(), setup_connection(), setup_pgdata(), setup_publisher(), SetVariable(), SetVariableHooks(), show_context_substitute_hook(), simple_action_list_append(), simple_prompt_extended(), split_path(), split_to_stringlist(), tar_open_for_write(), tarOpen(), verbosity_substitute_hook(), and watch_interval_substitute_hook().
Definition at line 145 of file fe_memutils.c.