PostgreSQL Source Code git master
|
#include "access/htup.h"
#include "access/transam.h"
#include "access/tupdesc.h"
#include "access/tupmacs.h"
#include "storage/bufpage.h"
#include "varatt.h"
Go to the source code of this file.
Data Structures | |
struct | HeapTupleFields |
struct | DatumTupleFields |
struct | HeapTupleHeaderData |
struct | MinimalTupleData |
Macros | |
#define | MaxTupleAttributeNumber 1664 /* 8 * 208 */ |
#define | MaxHeapAttributeNumber 1600 /* 8 * 200 */ |
#define | FIELDNO_HEAPTUPLEHEADERDATA_INFOMASK2 2 |
#define | FIELDNO_HEAPTUPLEHEADERDATA_INFOMASK 3 |
#define | FIELDNO_HEAPTUPLEHEADERDATA_HOFF 4 |
#define | FIELDNO_HEAPTUPLEHEADERDATA_BITS 5 |
#define | SizeofHeapTupleHeader offsetof(HeapTupleHeaderData, t_bits) |
#define | HEAP_HASNULL 0x0001 /* has null attribute(s) */ |
#define | HEAP_HASVARWIDTH 0x0002 /* has variable-width attribute(s) */ |
#define | HEAP_HASEXTERNAL 0x0004 /* has external stored attribute(s) */ |
#define | HEAP_HASOID_OLD 0x0008 /* has an object-id field */ |
#define | HEAP_XMAX_KEYSHR_LOCK 0x0010 /* xmax is a key-shared locker */ |
#define | HEAP_COMBOCID 0x0020 /* t_cid is a combo CID */ |
#define | HEAP_XMAX_EXCL_LOCK 0x0040 /* xmax is exclusive locker */ |
#define | HEAP_XMAX_LOCK_ONLY 0x0080 /* xmax, if valid, is only a locker */ |
#define | HEAP_XMAX_SHR_LOCK (HEAP_XMAX_EXCL_LOCK | HEAP_XMAX_KEYSHR_LOCK) |
#define | HEAP_LOCK_MASK |
#define | HEAP_XMIN_COMMITTED 0x0100 /* t_xmin committed */ |
#define | HEAP_XMIN_INVALID 0x0200 /* t_xmin invalid/aborted */ |
#define | HEAP_XMIN_FROZEN (HEAP_XMIN_COMMITTED|HEAP_XMIN_INVALID) |
#define | HEAP_XMAX_COMMITTED 0x0400 /* t_xmax committed */ |
#define | HEAP_XMAX_INVALID 0x0800 /* t_xmax invalid/aborted */ |
#define | HEAP_XMAX_IS_MULTI 0x1000 /* t_xmax is a MultiXactId */ |
#define | HEAP_UPDATED 0x2000 /* this is UPDATEd version of row */ |
#define | HEAP_MOVED_OFF |
#define | HEAP_MOVED_IN |
#define | HEAP_MOVED (HEAP_MOVED_OFF | HEAP_MOVED_IN) |
#define | HEAP_XACT_MASK 0xFFF0 /* visibility-related bits */ |
#define | HEAP_XMAX_BITS |
#define | HEAP_NATTS_MASK 0x07FF /* 11 bits for number of attributes */ |
#define | HEAP_KEYS_UPDATED |
#define | HEAP_HOT_UPDATED 0x4000 /* tuple was HOT-updated */ |
#define | HEAP_ONLY_TUPLE 0x8000 /* this is heap-only tuple */ |
#define | HEAP2_XACT_MASK 0xE000 /* visibility-related bits */ |
#define | HEAP_TUPLE_HAS_MATCH HEAP_ONLY_TUPLE /* tuple has a join match */ |
#define | HeapTupleHeaderGetNatts(tup) ((tup)->t_infomask2 & HEAP_NATTS_MASK) |
#define | HeapTupleHeaderSetNatts(tup, natts) |
#define | HeapTupleHeaderHasExternal(tup) (((tup)->t_infomask & HEAP_HASEXTERNAL) != 0) |
#define | MaxHeapTupleSize (BLCKSZ - MAXALIGN(SizeOfPageHeaderData + sizeof(ItemIdData))) |
#define | MinHeapTupleSize MAXALIGN(SizeofHeapTupleHeader) |
#define | MaxHeapTuplesPerPage |
#define | MaxAttrSize (10 * 1024 * 1024) |
#define | MINIMAL_TUPLE_OFFSET ((offsetof(HeapTupleHeaderData, t_infomask2) - sizeof(uint32)) / MAXIMUM_ALIGNOF * MAXIMUM_ALIGNOF) |
#define | MINIMAL_TUPLE_PADDING ((offsetof(HeapTupleHeaderData, t_infomask2) - sizeof(uint32)) % MAXIMUM_ALIGNOF) |
#define | MINIMAL_TUPLE_DATA_OFFSET offsetof(MinimalTupleData, t_infomask2) |
#define | SizeofMinimalTupleHeader offsetof(MinimalTupleData, t_bits) |
Typedefs | |
typedef struct HeapTupleFields | HeapTupleFields |
typedef struct DatumTupleFields | DatumTupleFields |
#define FIELDNO_HEAPTUPLEHEADERDATA_BITS 5 |
Definition at line 177 of file htup_details.h.
#define FIELDNO_HEAPTUPLEHEADERDATA_HOFF 4 |
Definition at line 172 of file htup_details.h.
#define FIELDNO_HEAPTUPLEHEADERDATA_INFOMASK 3 |
Definition at line 169 of file htup_details.h.
#define FIELDNO_HEAPTUPLEHEADERDATA_INFOMASK2 2 |
Definition at line 166 of file htup_details.h.
#define HEAP2_XACT_MASK 0xE000 /* visibility-related bits */ |
Definition at line 293 of file htup_details.h.
#define HEAP_COMBOCID 0x0020 /* t_cid is a combo CID */ |
Definition at line 195 of file htup_details.h.
#define HEAP_HASEXTERNAL 0x0004 /* has external stored attribute(s) */ |
Definition at line 192 of file htup_details.h.
#define HEAP_HASNULL 0x0001 /* has null attribute(s) */ |
Definition at line 190 of file htup_details.h.
#define HEAP_HASOID_OLD 0x0008 /* has an object-id field */ |
Definition at line 193 of file htup_details.h.
#define HEAP_HASVARWIDTH 0x0002 /* has variable-width attribute(s) */ |
Definition at line 191 of file htup_details.h.
#define HEAP_HOT_UPDATED 0x4000 /* tuple was HOT-updated */ |
Definition at line 290 of file htup_details.h.
#define HEAP_KEYS_UPDATED |
Definition at line 289 of file htup_details.h.
#define HEAP_LOCK_MASK |
Definition at line 202 of file htup_details.h.
#define HEAP_MOVED (HEAP_MOVED_OFF | HEAP_MOVED_IN) |
Definition at line 213 of file htup_details.h.
#define HEAP_MOVED_IN |
Definition at line 212 of file htup_details.h.
#define HEAP_MOVED_OFF |
Definition at line 211 of file htup_details.h.
#define HEAP_NATTS_MASK 0x07FF /* 11 bits for number of attributes */ |
Definition at line 287 of file htup_details.h.
#define HEAP_ONLY_TUPLE 0x8000 /* this is heap-only tuple */ |
Definition at line 291 of file htup_details.h.
#define HEAP_TUPLE_HAS_MATCH HEAP_ONLY_TUPLE /* tuple has a join match */ |
Definition at line 301 of file htup_details.h.
#define HEAP_UPDATED 0x2000 /* this is UPDATEd version of row */ |
Definition at line 210 of file htup_details.h.
#define HEAP_XACT_MASK 0xFFF0 /* visibility-related bits */ |
Definition at line 215 of file htup_details.h.
#define HEAP_XMAX_BITS |
Definition at line 281 of file htup_details.h.
#define HEAP_XMAX_COMMITTED 0x0400 /* t_xmax committed */ |
Definition at line 207 of file htup_details.h.
#define HEAP_XMAX_EXCL_LOCK 0x0040 /* xmax is exclusive locker */ |
Definition at line 196 of file htup_details.h.
#define HEAP_XMAX_INVALID 0x0800 /* t_xmax invalid/aborted */ |
Definition at line 208 of file htup_details.h.
#define HEAP_XMAX_IS_MULTI 0x1000 /* t_xmax is a MultiXactId */ |
Definition at line 209 of file htup_details.h.
#define HEAP_XMAX_KEYSHR_LOCK 0x0010 /* xmax is a key-shared locker */ |
Definition at line 194 of file htup_details.h.
Definition at line 197 of file htup_details.h.
#define HEAP_XMAX_SHR_LOCK (HEAP_XMAX_EXCL_LOCK | HEAP_XMAX_KEYSHR_LOCK) |
Definition at line 200 of file htup_details.h.
#define HEAP_XMIN_COMMITTED 0x0100 /* t_xmin committed */ |
Definition at line 204 of file htup_details.h.
#define HEAP_XMIN_FROZEN (HEAP_XMIN_COMMITTED|HEAP_XMIN_INVALID) |
Definition at line 206 of file htup_details.h.
#define HEAP_XMIN_INVALID 0x0200 /* t_xmin invalid/aborted */ |
Definition at line 205 of file htup_details.h.
#define HeapTupleHeaderGetNatts | ( | tup | ) | ((tup)->t_infomask2 & HEAP_NATTS_MASK) |
Definition at line 577 of file htup_details.h.
#define HeapTupleHeaderHasExternal | ( | tup | ) | (((tup)->t_infomask & HEAP_HASEXTERNAL) != 0) |
Definition at line 585 of file htup_details.h.
#define HeapTupleHeaderSetNatts | ( | tup, | |
natts | |||
) |
Definition at line 580 of file htup_details.h.
#define MaxAttrSize (10 * 1024 * 1024) |
Definition at line 635 of file htup_details.h.
#define MaxHeapAttributeNumber 1600 /* 8 * 200 */ |
Definition at line 48 of file htup_details.h.
#define MaxHeapTupleSize (BLCKSZ - MAXALIGN(SizeOfPageHeaderData + sizeof(ItemIdData))) |
Definition at line 610 of file htup_details.h.
#define MaxHeapTuplesPerPage |
Definition at line 624 of file htup_details.h.
#define MaxTupleAttributeNumber 1664 /* 8 * 208 */ |
Definition at line 34 of file htup_details.h.
#define MinHeapTupleSize MAXALIGN(SizeofHeapTupleHeader) |
Definition at line 611 of file htup_details.h.
#define MINIMAL_TUPLE_DATA_OFFSET offsetof(MinimalTupleData, t_infomask2) |
Definition at line 673 of file htup_details.h.
#define MINIMAL_TUPLE_OFFSET ((offsetof(HeapTupleHeaderData, t_infomask2) - sizeof(uint32)) / MAXIMUM_ALIGNOF * MAXIMUM_ALIGNOF) |
Definition at line 669 of file htup_details.h.
#define MINIMAL_TUPLE_PADDING ((offsetof(HeapTupleHeaderData, t_infomask2) - sizeof(uint32)) % MAXIMUM_ALIGNOF) |
Definition at line 671 of file htup_details.h.
#define SizeofHeapTupleHeader offsetof(HeapTupleHeaderData, t_bits) |
Definition at line 185 of file htup_details.h.
#define SizeofMinimalTupleHeader offsetof(MinimalTupleData, t_bits) |
Definition at line 699 of file htup_details.h.
typedef struct DatumTupleFields DatumTupleFields |
typedef struct HeapTupleFields HeapTupleFields |
|
inlinestatic |
Definition at line 594 of file htup_details.h.
Referenced by brin_form_placeholder_tuple(), brin_form_tuple(), check_tuple_header(), ER_get_flat_size(), expand_tuple(), heap_form_minimal_tuple(), heap_form_tuple(), heap_page_items(), heap_toast_insert_or_update(), heapam_relation_needs_toast_table(), toast_flatten_tuple_to_datum(), and tuple_data_split().
|
inlinestatic |
Definition at line 860 of file htup_details.h.
References Assert, att_isnull(), CompactAttribute::attcacheoff, attnum, fetchatt, HeapTupleNoNulls(), nocachegetattr(), HeapTupleHeaderData::t_bits, HeapTupleData::t_data, HeapTupleHeaderData::t_hoff, and TupleDescCompactAttr().
Referenced by AttrDefaultFetch(), CatalogCacheComputeTupleHashValue(), check_toast_tuple(), CheckConstraintFetch(), extractRelOptions(), heap_fetch_toast_slice(), heap_getattr(), load_domaintype_info(), MergeWithExistingConstraint(), pg_get_triggerdef_worker(), RelationBuildTriggers(), RelationGetExclusionInfo(), RelationInitIndexAccessInfo(), ReorderBufferToastAppendChunk(), and ReorderBufferToastReplace().
Definition at line 151 of file heaptuple.c.
References AttrMissing::am_present, AttrMissing::am_value, Assert, CompactAttribute::attbyval, CompactAttribute::atthasmissing, CompactAttribute::attlen, attnum, TupleDescData::constr, datumCopy(), HASH_ENTER, hash_search(), init_missing_cache(), sort-test::key, MemoryContextSwitchTo(), TupleConstr::missing, missing_cache, PointerGetDatum(), TopMemoryContext, TupleDescCompactAttr(), missing_cache_key::value, and VARSIZE_ANY.
Referenced by heap_getattr().
|
inlinestatic |
Definition at line 728 of file htup_details.h.
References HeapTupleData::t_data, and HeapTupleHeaderData::t_hoff.
Referenced by _int_matchsel(), aclitemout(), add_cast_to(), add_function_cost(), AddEnumLabel(), AddRoleMems(), AdjustNotNullInheritance(), AfterTriggerSetState(), agg_args_support_sendreceive(), AggregateCreate(), AlterCollation(), AlterConstraintNamespaces(), AlterConstrTriggerDeferrability(), AlterDatabase(), AlterDatabaseOwner(), AlterDatabaseRefreshColl(), AlterDomainAddConstraint(), AlterDomainDefault(), AlterDomainDropConstraint(), AlterDomainNotNull(), AlterDomainValidateConstraint(), AlterEventTrigger(), AlterEventTriggerOwner(), AlterEventTriggerOwner_internal(), AlterExtensionNamespace(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner(), AlterForeignDataWrapperOwner_internal(), AlterForeignServer(), AlterForeignServerOwner(), AlterForeignServerOwner_internal(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectRename_internal(), AlterOperator(), AlterOpFamily(), AlterPolicy(), AlterPublication(), AlterPublicationOptions(), AlterPublicationOwner(), AlterPublicationOwner_internal(), AlterPublicationSchemas(), AlterPublicationTables(), AlterRelationNamespaceInternal(), AlterRole(), AlterRoleSet(), AlterSchemaOwner(), AlterSchemaOwner_internal(), AlterSeqNamespaces(), AlterSequence(), AlterSubscription(), AlterSubscriptionOwner(), AlterSubscriptionOwner_internal(), AlterTableMoveAll(), AlterTableSpaceOptions(), AlterTSConfiguration(), AlterTSDictionary(), AlterType(), AlterTypeNamespaceInternal(), AlterTypeOwner(), AlterTypeOwner_oid(), AlterTypeOwnerInternal(), AlterTypeRecurse(), amvalidate(), appendFunctionName(), appendOrderBySuffix(), ApplyExtensionUpdates(), assignOperTypes(), assignProcTypes(), ATAddForeignKeyConstraint(), ATDetachCheckNoForeignKeyRefs(), ATExecAddColumn(), ATExecAddIdentity(), ATExecAddOf(), ATExecAlterChildConstr(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecAlterConstraint(), ATExecAlterConstrRecurse(), ATExecChangeOwner(), ATExecDropColumn(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropNotNull(), ATExecDropOf(), ATExecForceNoForceRowSecurity(), ATExecGenericOptions(), ATExecSetAccessMethodNoStorage(), ATExecSetCompression(), ATExecSetExpression(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetRowSecurity(), ATExecSetStatistics(), ATExecSetStorage(), ATExecValidateConstraint(), ATPostAlterTypeCleanup(), ATPrepAddPrimaryKey(), ATPrepAlterColumnType(), ATPrepChangePersistence(), ATPrepDropExpression(), AttrDefaultFetch(), blvalidate(), booltestsel(), brinvalidate(), btvalidate(), build_coercion_expression(), build_datatype(), build_function_result_tupdesc_t(), BuildEventTriggerCache(), CacheInvalidateHeapTupleCommon(), CacheInvalidateRelcacheByTuple(), calc_arraycontsel(), calc_multirangesel(), calc_rangesel(), call_pltcl_start_proc(), change_owner_fix_column_acls(), change_owner_recurse_to_sequences(), changeDependenciesOf(), changeDependenciesOn(), changeDependencyFor(), check_amop_signature(), check_amproc_signature(), check_db_file_conflict(), check_default_text_search_config(), check_enable_rls(), check_for_column_name_collision(), check_object_ownership(), check_of_type(), check_role(), check_safe_enum_use(), check_session_authorization(), CheckAlterPublication(), CheckConstraintFetch(), checkDomainOwner(), checkEnumOwner(), CheckFunctionValidatorAccess(), CheckIndexCompatible(), CheckMyDatabase(), checkSharedDependencies(), clear_subscription_skip_lsn(), CloneFkReferenced(), CloneFkReferencing(), CloneRowTriggersToPartition(), CollationIsVisibleExt(), comparison_ops_are_compatible(), compatible_oper(), compile_plperl_function(), compile_pltcl_function(), compute_return_type(), ComputeIndexAttrs(), ComputePartitionAttrs(), constraints_equivalent(), ConstraintSetParentConstraint(), ConstructTupleDescriptor(), ConversionIsVisibleExt(), convert_column_name(), copy_table_data(), CopyStatistics(), copyTemplateDependencies(), create_pg_locale(), create_pg_locale_icu(), create_toast_table(), CreateCast(), CreateDatabaseUsingFileCopy(), CreateFunction(), CreateInheritance(), CreateProceduralLanguage(), CreateRole(), CreateSchemaCommand(), CreateStatistics(), CreateTransform(), CreateTriggerFiringOn(), database_is_invalid_oid(), decompile_conbin(), DefineCollation(), DefineDomain(), DefineIndex(), DefineOpClass(), DefineTSConfiguration(), DefineType(), deleteDependencyRecordsFor(), deleteDependencyRecordsForClass(), deleteDependencyRecordsForSpecific(), DeleteInheritsTuple(), DelRoleMems(), deparseOpExpr(), deparseScalarArrayOpExpr(), DetachPartitionFinalize(), do_autovacuum(), do_compile(), do_setval(), drop_parent_dependency(), DropClonedTriggersFromPartition(), DropConfigurationMapping(), dropconstraint_internal(), dropdb(), DropRole(), DropSubscription(), DropTableSpace(), EnableDisableRule(), EnableDisableTrigger(), enum_cmp_internal(), enum_endpoint(), enum_in(), enum_out(), enum_range_internal(), enum_recv(), enum_send(), eqjoinsel(), equality_ops_are_compatible(), errdatatype(), estimate_hash_bucket_stats(), evaluate_function(), EventTriggerOnLogin(), examine_attribute(), examine_expression(), exec_object_restorecon(), ExecAlterExtensionStmt(), ExecGrant_Attribute(), ExecGrant_Language_check(), ExecGrant_Largeobject(), ExecGrant_Relation(), ExecGrant_Type_check(), ExecInitAgg(), ExecuteCallStmt(), ExecuteDoStmt(), expand_all_col_privileges(), expand_function_arguments(), expand_vacuum_rel(), extract_autovac_opts(), extractNotNullColumn(), extractRelOptions(), fetch_agg_sort_op(), fetch_fp_info(), fetch_statentries_for_relation(), fillTypeDesc(), find_coercion_pathway(), find_composite_type_dependencies(), find_inheritance_children_extended(), find_typed_table_dependencies(), find_typmod_coercion_function(), FindDefaultConversion(), findDependentObjects(), findDomainNotNullConstraint(), findNotNullConstraintAttnum(), finish_heap_swap(), fixup_whole_row_references(), fmgr_info_cxt_security(), fmgr_info_other_lang(), fmgr_security_definer(), fmgr_sql_validator(), fmgr_symbol(), format_operator_extended(), format_operator_parts(), format_procedure_extended(), format_procedure_parts(), format_type_extended(), func_get_detail(), func_parallel(), func_strict(), func_volatile(), FuncNameAsType(), FuncnameGetCandidates(), FunctionIsVisibleExt(), generate_collation_name(), generate_function_name(), generate_operator_clause(), generate_operator_name(), generate_qualified_relation_name(), generate_qualified_type_name(), generate_relation_name(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), GenerateTypeDependencies(), generic_restriction_selectivity(), get_all_vacuum_rels(), get_am_name(), get_am_type_oid(), get_array_type(), get_attavgwidth(), get_attgenerated(), get_attname(), get_attnum(), get_attr_stat_type(), get_attstatsslot(), get_atttype(), get_atttypetypmodcoll(), get_base_element_type(), get_collation(), get_collation_isdeterministic(), get_collation_name(), get_commutator(), get_compatible_hash_operators(), get_constraint_index(), get_constraint_name(), get_constraint_type(), get_database_list(), get_database_name(), get_database_oid(), get_db_info(), get_default_partition_oid(), get_domain_constraint_oid(), get_element_type(), get_extension_name(), get_extension_schema(), get_func_arg_info(), get_func_leakproof(), get_func_name(), get_func_namespace(), get_func_nargs(), get_func_prokind(), get_func_retset(), get_func_rettype(), get_func_signature(), get_func_support(), get_func_variadictype(), get_function_rows(), get_index_column_opclass(), get_index_constraint(), get_index_isclustered(), get_index_isreplident(), get_index_isvalid(), get_index_ref_constraints(), get_language_name(), get_mergejoin_opfamilies(), get_multirange_range(), get_namespace_name(), get_negator(), get_object_address_defacl(), get_object_address_opf_member(), get_object_address_type(), get_object_address_usermapping(), get_op_btree_interpretation(), get_op_hash_functions(), get_op_opfamily_properties(), get_op_opfamily_sortfamily(), get_op_opfamily_strategy(), get_op_rettype(), get_opclass(), get_opclass_family(), get_opclass_input_type(), get_opclass_method(), get_opclass_name(), get_opclass_oid(), get_opclass_opfamily_and_input_type(), get_opcode(), get_opfamily_member(), get_opfamily_name(), get_opfamily_oid(), get_opfamily_proc(), get_opname(), get_oprjoin(), get_oprrest(), get_ordering_op_for_equality_op(), get_ordering_op_properties(), get_partition_parent_worker(), get_pkey_attnames(), get_primary_key_attnos(), get_publication_name(), get_range_collation(), get_range_multirange(), get_range_subtype(), get_rel_name(), get_rel_namespace(), get_rel_persistence(), get_rel_relam(), get_rel_relispartition(), get_rel_relkind(), get_rel_tablespace(), get_rel_type_id(), get_relation_constraint_attnos(), get_relation_constraint_oid(), get_relation_idx_constraint_oid(), get_relation_policy_oid(), get_relation_statistics(), get_relation_statistics_worker(), get_rels_with_domain(), get_rewrite_oid(), get_ri_constraint_root(), get_rolespec_name(), get_rte_attribute_is_dropped(), get_subscription_list(), get_subscription_name(), get_tables_to_cluster(), get_tablespace_name(), get_tablespace_oid(), get_transform_fromsql(), get_transform_tosql(), get_trigger_oid(), get_typ_typrelid(), get_typbyval(), get_typcollation(), get_typdefault(), get_type_category_preferred(), get_type_io_data(), get_typisdefined(), get_typlen(), get_typlenbyval(), get_typlenbyvalalign(), get_typmodin(), get_typstorage(), get_typsubscript(), get_typtype(), get_variable_numdistinct(), get_variable_range(), GetAllTablesPublicationRelations(), GetAllTablesPublications(), GetAttrDefaultColumnAddress(), GetAttrDefaultOid(), getAutoExtensionsOfObject(), getBaseTypeAndTypmod(), getConstraintTypeDescription(), GetDefaultOpClass(), getExtensionOfObject(), GetFdwRoutineByServerId(), GetForeignDataWrapperExtended(), GetForeignKeyActionTriggers(), GetForeignKeyCheckTriggers(), GetForeignServerExtended(), GetForeignServerIdByRelId(), GetForeignTable(), GetIndexAmRoutineByAmId(), getObjectDescription(), getObjectIdentityParts(), getOpFamilyDescription(), getOpFamilyIdentity(), getOwnedSequences_internal(), GetParentedForeignKeyRefs(), getProcedureTypeDescription(), GetPublication(), GetPublicationRelations(), getPublicationSchemaInfo(), GetPublicationSchemas(), getRelationDescription(), getRelationIdentity(), GetRelationPublications(), getRelationsInNamespace(), getRelationTypeDescription(), GetSchemaPublicationRelations(), GetSchemaPublications(), GetSubscription(), GetSubscriptionRelations(), GetSubscriptionRelState(), getTypeBinaryInputInfo(), getTypeBinaryOutputInfo(), getTypeInputInfo(), getTypeIOParam(), getTypeOutputInfo(), GetUserMapping(), GetUserNameFromId(), ginvalidate(), gistvalidate(), has_bypassrls_privilege(), has_createrole_privilege(), has_rolreplication(), has_subclass(), hash_ok_operator(), hashvalidate(), have_createdb_privilege(), heap_drop_with_catalog(), heap_truncate_find_FKs(), identify_opfamily_groups(), index_build(), index_check_primary_key(), index_concurrently_swap(), index_constraint_create(), index_create(), index_get_partition(), index_set_state_flags(), index_update_stats(), indexam_property(), IndexGetRelation(), IndexSetParentIndex(), IndexSupportsBackwardScan(), init_database_collation(), init_sql_fcache(), initialize_peragg(), InitializeSessionUserId(), InitPostgres(), inline_function(), inline_set_returning_function(), InsertRule(), internal_get_result_type(), interpret_function_parameter_list(), inv_getsize(), inv_read(), inv_truncate(), inv_write(), IsBinaryCoercibleWithCast(), load_domaintype_info(), load_enum_cache_data(), load_rangetype_info(), load_relcache_init_file(), logicalrep_write_tuple(), logicalrep_write_typ(), lookup_C_func(), lookup_collation(), lookup_ts_config_cache(), lookup_ts_dictionary_cache(), lookup_ts_parser_cache(), lookup_type_cache(), LookupOpclassInfo(), LookupTypeNameOid(), make_inh_translation_list(), make_op(), make_scalar_array_op(), makeConfigurationDependencies(), MakeConfigurationMapping(), makeDictionaryDependencies(), makeOperatorDependencies(), makeParserDependencies(), makeTSTemplateDependencies(), map_sql_table_to_xmlschema(), map_sql_type_to_xml_name(), mark_index_clustered(), MarkInheritDetached(), MatchNamedCall(), MergeAttributesIntoExisting(), MergeConstraintsIntoExisting(), mergejoinscansel(), MergeWithExistingConstraint(), neqjoinsel(), networkjoinsel_inner(), networkjoinsel_semi(), networksel(), nextval_internal(), nulltestsel(), objectsInSchemaToOids(), op_hashjoinable(), op_input_types(), op_mergejoinable(), opclass_for_family_datatype(), OpClassCacheLookup(), OpclassIsVisibleExt(), OperatorGet(), OperatorIsVisibleExt(), OperatorUpd(), OpernameGetCandidates(), OpernameGetOprid(), OpFamilyCacheLookup(), OpfamilyIsVisibleExt(), oprfuncid(), oprid(), ParseFuncOrColumn(), parseTypeString(), PartitionHasPendingDetach(), patternsel_common(), pg_attribute_aclcheck_all_ext(), pg_attribute_aclmask_ext(), pg_basetype(), pg_class_aclmask_ext(), pg_collation_actual_version(), pg_database_collation_actual_version(), pg_get_constraintdef_worker(), pg_get_function_arg_default(), pg_get_function_result(), pg_get_functiondef(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_serial_sequence(), pg_get_statisticsobj_worker(), pg_get_statisticsobjdef_expressions(), pg_get_triggerdef_worker(), pg_get_userbyid(), pg_largeobject_aclmask_snapshot(), pg_namespace_aclmask_ext(), pg_nextoid(), pg_relation_filenode(), pg_relation_filepath(), pg_relation_is_publishable(), pg_sequence_parameters(), pg_type_aclmask_ext(), plan_member_revoke(), plan_recursive_revoke(), plan_single_revoke(), plperl_validator(), plpgsql_compile(), plpgsql_parse_cwordtype(), plpgsql_validator(), plpython3_validator(), plsample_func_handler(), plsample_trigger_handler(), PLy_procedure_create(), populate_typ_list(), postgres_fdw_get_connections_internal(), prepare_column_cache(), prepare_sql_fn_parse_info(), preprocess_aggref(), preprocessNamespacePath(), print_function_arguments(), print_function_rettype(), print_function_sqlbody(), ProcedureCreate(), QueueCheckConstraintValidation(), QueueFKConstraintValidation(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForAttachIndex(), RangeVarCallbackForDropRelation(), RangeVarCallbackForPolicy(), RangeVarCallbackForRenameAttribute(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackForTruncate(), RangeVarCallbackOwnsRelation(), read_seq_tuple(), recheck_cast_function_args(), record_C_func(), recordExtObjInitPriv(), refresh_by_match_merge(), regclassout(), regcollationout(), regconfigout(), regdictionaryout(), regoperout(), regprocout(), regtypeout(), reindex_index(), ReindexMultipleTables(), relation_mark_replica_identity(), relation_statistics_update(), RelationBuildDesc(), RelationBuildPartitionKey(), RelationBuildPublicationDesc(), RelationBuildRowSecurity(), RelationBuildRuleLock(), RelationBuildTriggers(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationClearMissing(), RelationGetExclusionInfo(), RelationGetFKeyList(), RelationGetIndexList(), RelationGetNotNullConstraints(), RelationGetStatExtList(), relationHasPrimaryKey(), RelationInitIndexAccessInfo(), RelationInitPhysicalAddr(), RelationInitTableAccessMethod(), RelationIsVisibleExt(), RelationReloadIndexInfo(), RelationReloadNailed(), RelationSetNewRelfilenumber(), RelidByRelfilenumber(), RememberAllDependentForRebuilding(), remove_dbtablespaces(), RemoveAttrDefault(), RemoveAttrDefaultById(), RemoveAttributeById(), RemoveConstraintById(), removeExtObjInitPriv(), RemoveFunctionById(), RemoveInheritance(), RemoveOperatorById(), RemovePolicyById(), RemovePublicationById(), RemovePublicationRelById(), RemovePublicationSchemaById(), RemoveRewriteRuleById(), RemoveRoleFromObjectACL(), RemoveRoleFromObjectPolicy(), RemoveStatisticsById(), RemoveSubscriptionRel(), RemoveTriggerById(), RemoveTypeById(), rename_constraint_internal(), rename_policy(), renameatt_internal(), RenameConstraintById(), RenameDatabase(), RenameEnumLabel(), RenameRelationInternal(), RenameRewriteRule(), RenameRole(), RenameSchema(), RenameTableSpace(), renametrig(), renametrig_internal(), renametrig_partition(), RenameType(), RenameTypeInternal(), RenumberEnumType(), reorder_function_arguments(), replorigin_by_name(), replorigin_by_oid(), ResetRelRewrite(), ResetSequence(), ResolveOpClass(), ri_GenerateQualCollation(), ri_LoadConstraintInfo(), roles_is_member_of(), scalararraysel_containment(), scalarineqsel(), ScanSourceDatabasePgClassTuple(), SearchSysCacheAttName(), SearchSysCacheAttNum(), sepgsql_attribute_post_create(), sepgsql_database_post_create(), sepgsql_proc_post_create(), sepgsql_proc_setattr(), sepgsql_relation_drop(), sepgsql_relation_post_create(), sepgsql_relation_setattr(), sepgsql_schema_post_create(), sequence_options(), sequenceIsOwned(), set_attnotnull(), SetAttrMissing(), SetDatabaseHasLoginEventTriggers(), SetDefaultACL(), SetIndexStorageProperties(), SetMatViewPopulatedState(), SetRelationHasSubclass(), SetRelationNumChecks(), SetRelationRuleStatus(), SetRelationTableSpace(), shdepChangeDep(), shdepDropDependency(), shdepDropOwned(), shdepReassignOwned(), simplify_function(), sort_order_cmp(), spgproperty(), spgvalidate(), SPI_gettype(), StatisticsGetRelation(), StatisticsObjIsVisibleExt(), StoreAttrDefault(), StorePartitionBound(), stringTypeDatum(), superuser_arg(), swap_relation_files(), table_recheck_autovac(), transformColumnDefinition(), transformColumnNameList(), transformColumnType(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformFrameOffset(), transformOfType(), triggered_change_notification(), TriggerSetParentTrigger(), tryAttachPartitionForeignKey(), TSConfigIsVisibleExt(), TSDictionaryIsVisibleExt(), TSParserIsVisibleExt(), tsquerysel(), TSTemplateIsVisibleExt(), TupleDescInitEntry(), typeByVal(), TypeCreate(), typeidTypeRelid(), typeInheritsFrom(), typeIsOfTypedTable(), TypeIsVisibleExt(), typeLen(), typenameType(), typenameTypeId(), typenameTypeIdAndMod(), typenameTypeMod(), typeOrDomainTypeRelid(), typeTypeCollation(), typeTypeId(), typeTypeName(), typeTypeRelid(), update_default_partition_oid(), update_relispartition(), vac_truncate_clog(), vac_update_datfrozenxid(), vac_update_relstats(), validatePartitionedIndex(), var_eq_const(), var_eq_non_const(), and verify_dictoptions().
Definition at line 456 of file heaptuple.c.
References Assert, att_isnull(), attnum, elog, ERROR, HeapTupleHeaderGetNatts, HeapTupleNoNulls(), MaxCommandIdAttributeNumber, MaxTransactionIdAttributeNumber, MinCommandIdAttributeNumber, MinTransactionIdAttributeNumber, SelfItemPointerAttributeNumber, HeapTupleHeaderData::t_bits, HeapTupleData::t_data, TableOidAttributeNumber, and TupleDescCompactAttr().
Referenced by AlterPublicationOptions(), AlterPublicationSchemas(), build_function_result_tupdesc_t(), check_index_is_clusterable(), check_modified_virtual_generated(), CheckIndexCompatible(), ExecEvalRowNullInt(), ExecuteCallStmt(), fmgr_info_cxt_security(), fmgr_symbol(), get_func_result_name(), index_drop(), inline_function(), inline_set_returning_function(), IsIndexUsableForReplicaIdentityFull(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_statisticsobj_worker(), pg_get_statisticsobjdef_expressions(), RelationGetDummyIndexExpressions(), RelationGetIndexExpressions(), RelationGetIndexList(), RelationGetIndexPredicate(), statext_is_kind_built(), and transformFkeyCheckAttrs().
Definition at line 219 of file heaptuple.c.
References att_addlength_datum, att_datum_alignby, att_nominal_alignby, CompactAttribute::attalignby, CompactAttribute::attlen, COMPACT_ATTR_IS_PACKABLE, DatumGetEOHP(), DatumGetPointer(), EOH_get_flat_size(), i, TupleDescData::natts, TupleDescCompactAttr(), val, values, VARATT_CAN_MAKE_SHORT, VARATT_CONVERTED_SHORT_SIZE, and VARATT_IS_EXTERNAL_EXPANDED.
Referenced by brin_form_tuple(), ER_get_flat_size(), heap_form_minimal_tuple(), heap_form_tuple(), heap_toast_insert_or_update(), index_form_tuple_context(), spgFormLeafTuple(), SpGistGetLeafTupleSize(), and toast_flatten_tuple_to_datum().
MinimalTuple heap_copy_minimal_tuple | ( | MinimalTuple | mtup | ) |
Definition at line 1536 of file heaptuple.c.
References palloc(), and MinimalTupleData::t_len.
Referenced by gm_readnext_tuple(), tts_minimal_copy_minimal_tuple(), tts_minimal_materialize(), tuplesort_gettupleslot(), and tuplestore_gettupleslot().
Definition at line 1081 of file heaptuple.c.
References HeapTupleHasExternal(), HeapTupleHeaderSetDatumLength(), HeapTupleHeaderSetTypeId(), HeapTupleHeaderSetTypMod(), palloc(), PointerGetDatum(), HeapTupleData::t_data, HeapTupleData::t_len, TupleDescData::tdtypeid, TupleDescData::tdtypmod, and toast_flatten_tuple_to_datum().
Referenced by ExecEvalConvertRowtype(), ExecFetchSlotHeapTupleDatum(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLySequence_ToComposite(), serialize_expr_stats(), and SPI_returntuple().
Definition at line 778 of file heaptuple.c.
References HeapTupleIsValid, HEAPTUPLESIZE, palloc(), HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, and HeapTupleData::t_tableOid.
Referenced by AlterConstraintNamespaces(), AlterConstrTriggerDeferrability(), AlterDomainValidateConstraint(), AlterExtensionNamespace(), AlterSequence(), AlterTypeOwner(), ATExecAlterConstrRecurse(), changeDependenciesOf(), changeDependenciesOn(), changeDependencyFor(), ConstraintSetParentConstraint(), CopyStatistics(), CreateTriggerFiringOn(), DefineIndex(), dropconstraint_internal(), EnableDisableTrigger(), ExecForceStoreHeapTuple(), expanded_record_set_tuple(), findDomainNotNullConstraint(), findNotNullConstraintAttnum(), get_catalog_object_by_oid_extended(), GetDatabaseTuple(), GetDatabaseTupleByOid(), index_concurrently_swap(), make_expanded_record_from_datum(), MarkInheritDetached(), MergeConstraintsIntoExisting(), MergeWithExistingConstraint(), QueueCheckConstraintValidation(), QueueFKConstraintValidation(), RelationInitIndexAccessInfo(), RemoveInheritance(), rename_policy(), RenameEnumLabel(), RenameTableSpace(), renametrig_internal(), RenumberEnumType(), ResetSequence(), rewrite_heap_tuple(), ScanPgRelation(), SearchSysCacheCopy(), SearchSysCacheCopyAttName(), SearchSysCacheCopyAttNum(), SearchSysCacheLockedCopy1(), shdepChangeDep(), SPI_copytuple(), statext_expressions_load(), systable_inplace_update_begin(), TriggerSetParentTrigger(), tts_buffer_heap_copy_heap_tuple(), tts_buffer_heap_materialize(), tts_heap_copy_heap_tuple(), tts_heap_materialize(), and tuplesort_putheaptuple().
Definition at line 804 of file heaptuple.c.
References generate_unaccent_rules::dest, HeapTupleIsValid, palloc(), HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, and HeapTupleData::t_tableOid.
Definition at line 1346 of file heaptuple.c.
References att_addlength_pointer, att_isnull(), att_nominal_alignby, att_pointer_alignby, CompactAttribute::attalignby, CompactAttribute::attcacheoff, CompactAttribute::attlen, attnum, fetchatt, for(), HeapTupleHasNulls(), HeapTupleHeaderGetNatts, Min, TupleDescData::natts, HeapTupleHeaderData::t_bits, HeapTupleData::t_data, HeapTupleHeaderData::t_hoff, TupleDescCompactAttr(), and values.
Referenced by attribute_statistics_update(), deconstruct_expanded_record(), exec_move_row(), ExecEvalFieldStoreDeForm(), ExecForceStoreHeapTuple(), ExecForceStoreMinimalTuple(), ExecStoreHeapTupleDatum(), execute_attr_map_tuple(), ExtractReplicaIdentity(), hash_record(), hash_record_extended(), heap_modify_tuple(), heap_modify_tuple_by_cols(), heap_toast_delete(), heap_toast_insert_or_update(), hstore_from_record(), hstore_populate_record(), make_tuple_indirect(), populate_record(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_out(), record_send(), reform_and_rewrite_tuple(), ReorderBufferToastReplace(), RI_Initial_Check(), RI_PartitionRemove_Check(), SPI_modifytuple(), toast_flatten_tuple(), and toast_flatten_tuple_to_datum().
Definition at line 1066 of file heaptuple.c.
References expand_tuple().
void heap_fill_tuple | ( | TupleDesc | tupleDesc, |
const Datum * | values, | ||
const bool * | isnull, | ||
char * | data, | ||
Size | data_size, | ||
uint16 * | infomask, | ||
bits8 * | bit | ||
) |
Definition at line 401 of file heaptuple.c.
References Assert, bit(), data, fill_val(), HEAP_HASEXTERNAL, HEAP_HASNULL, HEAP_HASVARWIDTH, HIGHBIT, i, TupleDescData::natts, PointerGetDatum(), start, TupleDescCompactAttr(), and values.
Referenced by brin_form_tuple(), ER_flatten_into(), heap_form_minimal_tuple(), heap_form_tuple(), heap_toast_insert_or_update(), index_form_tuple_context(), spgFormLeafTuple(), and toast_flatten_tuple_to_datum().
MinimalTuple heap_form_minimal_tuple | ( | TupleDesc | tupleDescriptor, |
const Datum * | values, | ||
const bool * | isnull | ||
) |
Definition at line 1453 of file heaptuple.c.
References BITMAPLEN(), ereport, errcode(), errmsg(), ERROR, heap_compute_data_size(), heap_fill_tuple(), HeapTupleHeaderSetNatts, i, len, MAXALIGN, MaxTupleAttributeNumber, MINIMAL_TUPLE_OFFSET, TupleDescData::natts, palloc0(), SizeofMinimalTupleHeader, MinimalTupleData::t_bits, MinimalTupleData::t_hoff, MinimalTupleData::t_infomask, MinimalTupleData::t_len, and values.
Referenced by tts_minimal_materialize(), tts_virtual_copy_minimal_tuple(), and tuplestore_putvalues().
Definition at line 1117 of file heaptuple.c.
References BITMAPLEN(), ereport, errcode(), errmsg(), ERROR, heap_compute_data_size(), heap_fill_tuple(), HeapTupleHeaderSetDatumLength(), HeapTupleHeaderSetNatts, HeapTupleHeaderSetTypeId(), HeapTupleHeaderSetTypMod(), HEAPTUPLESIZE, i, InvalidOid, ItemPointerSetInvalid(), len, MAXALIGN, MaxTupleAttributeNumber, TupleDescData::natts, palloc0(), HeapTupleHeaderData::t_bits, HeapTupleHeaderData::t_ctid, HeapTupleData::t_data, HeapTupleHeaderData::t_hoff, HeapTupleHeaderData::t_infomask, HeapTupleData::t_len, HeapTupleData::t_self, HeapTupleData::t_tableOid, TupleDescData::tdtypeid, TupleDescData::tdtypmod, and values.
Referenced by aclexplode(), AddEnumLabel(), AddRoleMems(), AddSubscriptionRelState(), AggregateCreate(), AlterSetting(), brin_metapage_info(), bt_page_print_tuples(), BuildTupleFromCStrings(), CastCreate(), CollationCreate(), ConversionCreate(), copy_replication_slot(), CreateAccessMethod(), CreateComments(), CreateConstraintEntry(), createdb(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateOpFamily(), CreatePolicy(), CreateProceduralLanguage(), CreatePublication(), CreateRole(), CreateSharedComments(), CreateStatistics(), CreateSubscription(), CreateTableSpace(), CreateTransform(), CreateTriggerFiringOn(), CreateUserMapping(), DefineOpClass(), DefineSequence(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), each_object_field_end(), elements_array_element_end(), ExecEvalFieldStoreForm(), ExecEvalRow(), execute_attr_map_tuple(), expanded_record_get_tuple(), ExtractReplicaIdentity(), file_acquire_sample_rows(), fill_hba_line(), fill_ident_line(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), gist_page_opaque_info(), gistFetchTuple(), hash_bitmap_info(), hash_metapage_info(), hash_page_items(), hash_page_stats(), heap_modify_tuple(), heap_modify_tuple_by_cols(), heap_page_items(), heap_tuple_infomask_flags(), hstore_each(), hstore_populate_record(), injection_points_stats_fixed(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertOneTuple(), InsertPgClassTuple(), InsertRule(), inv_truncate(), inv_write(), LargeObjectCreate(), make_tuple_from_result_row(), make_tuple_from_row(), make_tuple_indirect(), NamespaceCreate(), OperatorCreate(), OperatorShellMake(), page_header(), ParameterAclCreate(), pg_available_wal_summaries(), pg_backup_stop(), pg_buffercache_pages(), pg_buffercache_summary(), pg_control_checkpoint(), pg_control_init(), pg_control_recovery(), pg_control_system(), pg_create_logical_replication_slot(), pg_create_physical_replication_slot(), pg_get_catalog_foreign_keys(), pg_get_logical_snapshot_info(), pg_get_logical_snapshot_meta(), pg_get_object_address(), pg_get_publication_tables(), pg_get_sequence_data(), pg_get_wal_record_info(), pg_get_wal_summarizer_state(), pg_identify_object(), pg_identify_object_as_address(), pg_input_error_info(), pg_last_committed_xact(), pg_lock_status(), pg_partition_tree(), pg_prepared_xact(), pg_replication_slot_advance(), pg_sequence_parameters(), pg_split_walfile_name(), pg_stat_file(), pg_stat_get_archiver(), pg_stat_get_backend_subxact(), pg_stat_get_replication_slot(), pg_stat_get_subscription_stats(), pg_stat_get_wal(), pg_stat_get_wal_receiver(), pg_stat_statements_info(), pg_stats_ext_mcvlist_items(), pg_timezone_abbrevs_abbrevs(), pg_timezone_abbrevs_zone(), pg_visibility(), pg_visibility_map(), pg_visibility_map_rel(), pg_visibility_map_summary(), pg_visibility_rel(), pg_wal_summary_contents(), pg_walfile_name_offset(), pg_xact_commit_timestamp_origin(), pgstatginindex_internal(), pgstathashindex(), pgstattuple_approx_internal(), plperl_build_tuple_result(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLySequence_ToComposite(), populate_record(), ProcedureCreate(), publication_add_relation(), publication_add_schema(), RangeCreate(), record_in(), record_recv(), recordExtensionInitPrivWorker(), reform_and_rewrite_tuple(), ReorderBufferToastReplace(), replorigin_create(), report_corruption_internal(), serialize_expr_stats(), SetDefaultACL(), SetSecurityLabel(), SetSharedSecurityLabel(), shdepAddDependency(), shdepChangeDep(), SPI_modifytuple(), ssl_extension_info(), statext_store(), StoreAttrDefault(), storeGettuple(), storeOperators(), StorePartitionKey(), storeProcedures(), StoreSingleInheritance(), test_enc_conversion(), test_predtest(), toast_build_flattened_tuple(), toast_flatten_tuple(), toast_save_datum(), tsvector_unnest(), tts_buffer_heap_materialize(), tts_heap_materialize(), tts_virtual_copy_heap_tuple(), TypeCreate(), TypeShellMake(), update_attstats(), UpdateIndexRelation(), and upsert_pg_statistic().
void heap_free_minimal_tuple | ( | MinimalTuple | mtup | ) |
Definition at line 1524 of file heaptuple.c.
References pfree().
Referenced by ExecHashJoinImpl(), ExecHashSkewTableInsert(), ExecHashTableInsert(), ExecParallelHashJoinPartitionOuter(), ExecParallelHashTableInsert(), ExecParallelHashTableInsertCurrentBatch(), tts_minimal_clear(), and writetup_heap().
void heap_freetuple | ( | HeapTuple | htup | ) |
Definition at line 1435 of file heaptuple.c.
References pfree().
Referenced by acquire_inherited_sample_rows(), acquire_sample_rows(), AddEnumLabel(), AddSubscriptionRelState(), AfterTriggerExecute(), AlterCollation(), AlterConstrTriggerDeferrability(), AlterDatabaseOwner(), AlterDatabaseRefreshColl(), AlterDomainDefault(), AlterDomainNotNull(), AlterDomainValidateConstraint(), AlterEventTrigger(), AlterEventTriggerOwner(), AlterEventTriggerOwner_oid(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner(), AlterForeignDataWrapperOwner_oid(), AlterForeignServer(), AlterForeignServerOwner(), AlterForeignServerOwner_oid(), AlterFunction(), AlterObjectRename_internal(), AlterPolicy(), AlterPublication(), AlterPublicationOwner(), AlterPublicationOwner_oid(), AlterRelationNamespaceInternal(), AlterRole(), AlterSchemaOwner_internal(), AlterStatistics(), AlterSubscription(), AlterSubscriptionOwner(), AlterSubscriptionOwner_oid(), AlterTableSpaceOptions(), AlterTSDictionary(), AlterTypeNamespaceInternal(), AlterUserMapping(), analyze_row_processor(), ATExecAddColumn(), ATExecAddIdentity(), ATExecAddOf(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecAlterConstrRecurse(), ATExecChangeOwner(), ATExecDropColumn(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropNotNull(), ATExecDropOf(), ATExecForceNoForceRowSecurity(), ATExecGenericOptions(), ATExecSetAccessMethodNoStorage(), ATExecSetCompression(), ATExecSetIdentity(), ATExecSetOptions(), ATExecSetRelOptions(), ATExecSetRowSecurity(), ATExecSetStatistics(), ATExecSetStorage(), build_tuplestore_recursively(), CastCreate(), CatalogCacheCreateEntry(), CatalogTuplesMultiInsertWithInfo(), change_owner_fix_column_acls(), changeDependenciesOf(), changeDependenciesOn(), changeDependencyFor(), clear_subscription_skip_lsn(), CollationCreate(), ConversionCreate(), copy_table_data(), CopyStatistics(), create_toast_table(), CreateAccessMethod(), CreateComments(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateOpFamily(), CreatePolicy(), CreatePublication(), CreateSharedComments(), CreateStatistics(), CreateSubscription(), CreateTableSpace(), CreateTransform(), CreateTriggerFiringOn(), CreateUserMapping(), crosstab(), DefineIndex(), DefineOpClass(), DefineSequence(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DetachPartitionFinalize(), DisableSubscription(), dropconstraint_internal(), dropdb(), EnableDisableRule(), EnableDisableTrigger(), EventTriggerOnLogin(), examine_attribute(), examine_expression(), ExecBRDeleteTriggers(), ExecBRInsertTriggers(), ExecBRUpdateTriggers(), ExecIRDeleteTriggers(), ExecIRInsertTriggers(), ExecIRUpdateTriggers(), ExecReScanAgg(), ExecReScanIndexScan(), ExecScanSubPlan(), ExecSetParamPlan(), expanded_record_set_tuple(), ExtractReplicaIdentity(), file_acquire_sample_rows(), heap_delete(), heap_insert(), heap_update(), index_build(), index_concurrently_swap(), index_constraint_create(), index_update_stats(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertOneTuple(), InsertPgClassTuple(), InsertRule(), inv_truncate(), inv_write(), LargeObjectCreate(), mark_index_clustered(), MarkInheritDetached(), MergeAttributesIntoExisting(), MergeConstraintsIntoExisting(), OperatorShellMake(), ParameterAclCreate(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLySequence_ToComposite(), ProcedureCreate(), publication_add_relation(), publication_add_schema(), QueueCheckConstraintValidation(), QueueFKConstraintValidation(), RangeCreate(), raw_heap_insert(), record_in(), record_recv(), reform_and_rewrite_tuple(), relation_mark_replica_identity(), relation_statistics_update(), RelationBuildDesc(), RelationClearMissing(), RelationInitPhysicalAddr(), RelationReloadIndexInfo(), RelationReloadNailed(), RelationSetNewRelfilenumber(), RemoveConstraintById(), RemoveInheritance(), RemoveRoleFromObjectPolicy(), renameatt_internal(), RenameConstraintById(), RenameEnumLabel(), RenameRelationInternal(), RenameRewriteRule(), RenameSchema(), RenameTypeInternal(), RenumberEnumType(), replorigin_create(), ResetRelRewrite(), rewrite_heap_dead_tuple(), rewrite_heap_tuple(), set_attnotnull(), SetDatabaseHasLoginEventTriggers(), SetIndexStorageProperties(), SetMatViewPopulatedState(), SetRelationHasSubclass(), SetRelationNumChecks(), SetRelationRuleStatus(), SetRelationTableSpace(), SetSecurityLabel(), SetSharedSecurityLabel(), shdepAddDependency(), shdepChangeDep(), SPI_freetuple(), statext_store(), StoreAttrDefault(), storeOperators(), StorePartitionBound(), storeProcedures(), StoreSingleInheritance(), swap_relation_files(), table_recheck_autovac(), toast_save_datum(), TriggerSetParentTrigger(), tts_buffer_heap_clear(), tts_buffer_heap_store_tuple(), tts_heap_clear(), TypeShellMake(), update_attstats(), update_default_partition_oid(), update_relispartition(), UpdateIndexRelation(), UpdateTwoPhaseState(), upsert_pg_statistic(), vac_update_datfrozenxid(), validatePartitionedIndex(), and xpath_table().
|
inlinestatic |
Definition at line 903 of file htup_details.h.
References attnum, fastgetattr(), getmissingattr(), heap_getsysattr(), HeapTupleHeaderGetNatts, and HeapTupleData::t_data.
Referenced by AlterDatabaseOwner(), AlterDatabaseRefreshColl(), AlterForeignDataWrapperOwner_internal(), AlterForeignServerOwner_internal(), AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterPolicy(), AlterSetting(), AlterTableSpaceOptions(), AlterTypeOwnerInternal(), ApplySetting(), ATExecAlterColumnType(), BuildEventTriggerCache(), CatalogCacheCreateEntry(), change_owner_fix_column_acls(), CloneRowTriggersToPartition(), comparetup_cluster_tiebreak(), comparetup_heap_tiebreak(), composite_to_json(), composite_to_jsonb(), decompile_conbin(), EventTriggerSQLDropAddObject(), ExecAlterExtensionStmt(), ExecEvalFieldSelect(), ExecGrant_Largeobject(), ExecScanSubPlan(), ExecSetParamPlan(), extension_config_remove(), GenerateTypeDependencies(), get_primary_key_attnos(), get_relation_constraint_attnos(), GetAttributeByName(), GetAttributeByNum(), GetComment(), GetSecurityLabel(), GetSharedSecurityLabel(), GetSysCacheOid(), HeapDetermineColumnsInfo(), HeapKeyTest(), make_build_data(), object_ownercheck(), pg_event_trigger_ddl_commands(), pg_extension_config_dump(), pg_get_acl(), pg_identify_object(), pg_largeobject_aclmask_snapshot(), plperl_hash_from_tuple(), pltcl_build_tuple_argument(), pltcl_set_tuple_values(), PLyDict_FromTuple(), readtup_cluster(), readtup_heap(), recordExtensionInitPrivWorker(), recordExtObjInitPriv(), RelationBuildPartitionDesc(), RelationBuildRowSecurity(), RelationBuildRuleLock(), RelationBuildTupleDesc(), RelationGetDummyIndexExpressions(), RelationGetIndexAttrBitmap(), RelationGetIndexExpressions(), RelationGetIndexPredicate(), removeabbrev_cluster(), removeabbrev_heap(), RemoveRoleFromInitPriv(), RemoveRoleFromObjectPolicy(), RenameRole(), ReplaceRoleInInitPriv(), sepgsql_relation_setattr_extra(), SPI_getbinval(), SPI_getvalue(), std_fetch_func(), SysCacheGetAttr(), tuple_to_stringinfo(), tuplesort_putheaptuple(), and tuplesort_puttupleslot().
Definition at line 725 of file heaptuple.c.
References Assert, attnum, CommandIdGetDatum(), elog, ERROR, HeapTupleHeaderGetRawCommandId(), HeapTupleHeaderGetRawXmax(), HeapTupleHeaderGetRawXmin(), MaxCommandIdAttributeNumber, MaxTransactionIdAttributeNumber, MinCommandIdAttributeNumber, MinTransactionIdAttributeNumber, ObjectIdGetDatum(), PointerGetDatum(), SelfItemPointerAttributeNumber, HeapTupleData::t_data, HeapTupleData::t_self, HeapTupleData::t_tableOid, TableOidAttributeNumber, and TransactionIdGetDatum().
Referenced by expanded_record_fetch_field(), heap_getattr(), tts_buffer_heap_getsysattr(), and tts_heap_getsysattr().
|
inlinestatic |
Definition at line 251 of file htup_details.h.
References HEAP_XMAX_EXCL_LOCK, HEAP_XMAX_IS_MULTI, HEAP_XMAX_KEYSHR_LOCK, and HEAP_XMAX_LOCK_ONLY.
Referenced by compute_new_xmax_infomask(), Do_MultiXactIdWait(), DoesMultiXactIdConflict(), FreezeMultiXactId(), heap_lock_updated_tuple_rec(), heap_tuple_should_freeze(), heap_update(), HeapTupleSatisfiesUpdate(), HeapTupleSatisfiesVacuumHorizon(), and pgrowlocks().
HeapTuple heap_modify_tuple | ( | HeapTuple | tuple, |
TupleDesc | tupleDesc, | ||
const Datum * | replValues, | ||
const bool * | replIsnull, | ||
const bool * | doReplace | ||
) |
Definition at line 1210 of file heaptuple.c.
References heap_deform_tuple(), heap_form_tuple(), TupleDescData::natts, palloc(), pfree(), HeapTupleHeaderData::t_ctid, HeapTupleData::t_data, HeapTupleData::t_self, HeapTupleData::t_tableOid, and values.
Referenced by AddRoleMems(), AggregateCreate(), AlterCollation(), AlterDatabase(), AlterDatabaseOwner(), AlterDatabaseRefreshColl(), AlterDomainDefault(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner_internal(), AlterForeignServer(), AlterForeignServerOwner_internal(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterOperator(), AlterPolicy(), AlterPublicationOptions(), AlterRole(), AlterSchemaOwner_internal(), AlterSetting(), AlterStatistics(), AlterSubscription(), AlterTableSpaceOptions(), AlterTSDictionary(), AlterTypeOwnerInternal(), AlterTypeRecurse(), AlterUserMapping(), ApplyExtensionUpdates(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecChangeOwner(), ATExecGenericOptions(), ATExecSetOptions(), ATExecSetRelOptions(), ATExecSetStatistics(), change_owner_fix_column_acls(), clear_subscription_skip_lsn(), CreateComments(), CreateProceduralLanguage(), CreateSharedComments(), CreateTransform(), DelRoleMems(), DetachPartitionFinalize(), DisableSubscription(), ExecGrant_Attribute(), ExecGrant_common(), ExecGrant_Largeobject(), ExecGrant_Parameter(), ExecGrant_Relation(), extension_config_remove(), index_concurrently_swap(), InsertRule(), inv_truncate(), inv_write(), MakeConfigurationMapping(), movedb(), OperatorCreate(), pg_extension_config_dump(), plperl_modify_tuple(), PLy_modify_tuple(), ProcedureCreate(), recordExtensionInitPrivWorker(), RelationClearMissing(), RemoveAttributeById(), RemoveRoleFromInitPriv(), RemoveRoleFromObjectPolicy(), RenameRole(), ReplaceRoleInInitPriv(), SetAttrMissing(), SetDefaultACL(), SetSecurityLabel(), SetSharedSecurityLabel(), StoreAttrDefault(), StorePartitionBound(), TypeCreate(), update_attstats(), UpdateSubscriptionRelState(), UpdateTwoPhaseState(), and upsert_pg_statistic().
HeapTuple heap_modify_tuple_by_cols | ( | HeapTuple | tuple, |
TupleDesc | tupleDesc, | ||
int | nCols, | ||
const int * | replCols, | ||
const Datum * | replValues, | ||
const bool * | replIsnull | ||
) |
Definition at line 1278 of file heaptuple.c.
References attnum, elog, ERROR, heap_deform_tuple(), heap_form_tuple(), i, TupleDescData::natts, palloc(), pfree(), HeapTupleHeaderData::t_ctid, HeapTupleData::t_data, HeapTupleData::t_self, HeapTupleData::t_tableOid, and values.
Referenced by autoinc(), check_modified_virtual_generated(), insert_username(), moddatetime(), relation_statistics_update(), and tsvector_update_trigger().
HeapTuple heap_tuple_from_minimal_tuple | ( | MinimalTuple | mtup | ) |
Definition at line 1555 of file heaptuple.c.
References HEAPTUPLESIZE, InvalidOid, ItemPointerSetInvalid(), len, MINIMAL_TUPLE_OFFSET, palloc(), HeapTupleData::t_data, HeapTupleData::t_len, MinimalTupleData::t_len, HeapTupleData::t_self, and HeapTupleData::t_tableOid.
Referenced by tts_minimal_copy_heap_tuple().
|
inlinestatic |
Definition at line 269 of file htup_details.h.
Referenced by compute_new_xmax_infomask(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), and pgrowlocks().
|
inlinestatic |
Definition at line 275 of file htup_details.h.
Referenced by compute_new_xmax_infomask(), heap_inplace_lock(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_update(), and pgrowlocks().
|
inlinestatic |
Definition at line 226 of file htup_details.h.
References HEAP_LOCK_MASK, HEAP_XMAX_EXCL_LOCK, HEAP_XMAX_IS_MULTI, and HEAP_XMAX_LOCK_ONLY.
Referenced by check_tuple_visibility(), compute_new_xmax_infomask(), Do_MultiXactIdWait(), DoesMultiXactIdConflict(), FreezeMultiXactId(), heap_delete(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_prepare_freeze_tuple(), heap_tuple_should_freeze(), heap_update(), heap_xlog_lock(), HeapTupleIsSurelyDead(), HeapTupleSatisfiesDirty(), HeapTupleSatisfiesHistoricMVCC(), HeapTupleSatisfiesMVCC(), HeapTupleSatisfiesSelf(), HeapTupleSatisfiesUpdate(), HeapTupleSatisfiesVacuumHorizon(), log_heap_new_cid(), logical_rewrite_heap_tuple(), and UpdateXmaxHintBits().
|
inlinestatic |
Definition at line 263 of file htup_details.h.
Referenced by compute_new_xmax_infomask(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), and pgrowlocks().
|
inlinestatic |
Definition at line 756 of file htup_details.h.
References HEAP_HASVARWIDTH, HeapTupleData::t_data, and HeapTupleHeaderData::t_infomask.
|
inlinestatic |
Definition at line 798 of file htup_details.h.
References HeapTupleHeaderSetHeapOnly(), and HeapTupleData::t_data.
Referenced by heap_update().
|
inlinestatic |
Definition at line 780 of file htup_details.h.
References HeapTupleHeaderSetHotUpdated(), and HeapTupleData::t_data.
Referenced by heap_update().
|
inlinestatic |
Definition at line 762 of file htup_details.h.
References HeapTupleHasVarWidth().
Referenced by CatalogCacheCreateEntry(), check_domain_for_new_tuple(), expanded_record_set_tuple(), ExtractReplicaIdentity(), heap_abort_speculative(), heap_copy_tuple_as_datum(), heap_delete(), heap_prepare_insert(), heap_update(), and raw_heap_insert().
|
inlinestatic |
Definition at line 738 of file htup_details.h.
Referenced by expand_tuple(), heap_deform_tuple(), HeapTupleHasVarWidth(), inv_getsize(), inv_read(), inv_truncate(), inv_write(), nocachegetattr(), and slot_deform_heap_tuple().
|
inlinestatic |
Definition at line 750 of file htup_details.h.
References HeapTupleHasNulls().
Referenced by HeapTupleHasExternal(), and nocachegetattr().
|
inlinestatic |
Definition at line 567 of file htup_details.h.
References HEAP_ONLY_TUPLE, and HeapTupleHeaderData::t_infomask2.
|
inlinestatic |
Definition at line 549 of file htup_details.h.
References HEAP_HOT_UPDATED, and HeapTupleHeaderData::t_infomask2.
Referenced by heap_delete(), heap_lock_tuple(), heap_xlog_delete(), heap_xlog_lock(), heap_xlog_update(), and HeapTupleIsHeapOnly().
|
inlinestatic |
Definition at line 718 of file htup_details.h.
References HEAP_TUPLE_HAS_MATCH, and MinimalTupleData::t_infomask2.
Referenced by ExecHashSkewTableInsert(), ExecHashTableInsert(), ExecHashTableResetMatchFlags(), ExecParallelHashTableInsert(), and ExecParallelHashTableInsertCurrentBatch().
|
inlinestatic |
Definition at line 492 of file htup_details.h.
References ItemPointerSetMovedPartitions(), and HeapTupleHeaderData::t_ctid.
Referenced by composite_to_json(), composite_to_jsonb(), deconstruct_composite_datum(), exec_move_row_from_datum(), ExecEvalConvertRowtype(), ExecEvalFieldSelect(), ExecEvalFieldStoreDeForm(), ExecEvalRowNullInt(), ExecMakeTableFunctionResult(), ExecModifyTable(), ExecStoreHeapTupleDatum(), ExecuteCallStmt(), GetAttributeByName(), GetAttributeByNum(), hash_record(), hash_record_extended(), HeapTupleHeaderGetDatum(), hstore_from_record(), hstore_populate_record(), make_expanded_record_from_datum(), make_tuple_indirect(), plperl_hash_from_datum(), pltcl_func_handler(), PLyDict_FromComposite(), populate_record(), populate_recordset_record(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_out(), record_send(), and statext_expressions_load().
|
inlinestatic |
Definition at line 415 of file htup_details.h.
Referenced by heap_getsysattr(), heap_page_items(), HeapTupleHeaderGetCmax(), HeapTupleHeaderGetCmin(), HeapTupleSatisfiesHistoricMVCC(), and log_heap_new_cid().
|
inlinestatic |
Definition at line 377 of file htup_details.h.
Referenced by check_tuple_visibility(), heap_delete(), heap_getsysattr(), heap_inplace_lock(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_page_items(), heap_pre_freeze_checks(), heap_prepare_freeze_tuple(), heap_tuple_needs_eventual_freeze(), heap_tuple_should_freeze(), heap_update(), HeapTupleGetUpdateXid(), HeapTupleHeaderGetUpdateXid(), HeapTupleHeaderIsOnlyLocked(), HeapTupleIsSurelyDead(), HeapTupleSatisfiesDirty(), HeapTupleSatisfiesHistoricMVCC(), HeapTupleSatisfiesMVCC(), HeapTupleSatisfiesSelf(), HeapTupleSatisfiesUpdate(), HeapTupleSatisfiesVacuumHorizon(), log_heap_update(), pgrowlocks(), read_seq_tuple(), and UpdateXmaxHintBits().
|
inlinestatic |
Definition at line 318 of file htup_details.h.
Referenced by compile_plperl_function(), compile_pltcl_function(), do_compile(), heap_getsysattr(), heap_page_items(), heap_pre_freeze_checks(), HeapTupleHeaderAdjustCmax(), HeapTupleSatisfiesDirty(), HeapTupleSatisfiesMVCC(), HeapTupleSatisfiesSelf(), HeapTupleSatisfiesUpdate(), HeapTupleSatisfiesVacuumHorizon(), lookup_C_func(), plpgsql_compile(), PLy_procedure_create(), PLy_procedure_valid(), record_C_func(), tts_buffer_is_current_xact_tuple(), tts_heap_is_current_xact_tuple(), and validate_plperl_function().
|
inlinestatic |
Definition at line 467 of file htup_details.h.
References ItemPointerGetOffsetNumberNoCheck(), SpecTokenOffsetNumber, and HeapTupleHeaderData::t_ctid.
Referenced by HeapTupleSatisfiesDirty().
|
inlinestatic |
Definition at line 504 of file htup_details.h.
References len, and SET_VARSIZE.
Referenced by composite_to_json(), composite_to_jsonb(), deconstruct_composite_datum(), exec_move_row_from_datum(), ExecEvalConvertRowtype(), ExecEvalFieldSelect(), ExecEvalRowNullInt(), ExecMakeTableFunctionResult(), ExecuteCallStmt(), get_expr_result_type(), GetAttributeByName(), GetAttributeByNum(), hash_record(), hash_record_extended(), HeapTupleHeaderGetDatum(), hstore_from_record(), hstore_populate_record(), make_expanded_record_from_datum(), make_tuple_indirect(), plperl_hash_from_datum(), pltcl_func_handler(), PLyDict_FromComposite(), populate_record_worker(), populate_recordset_worker(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_out(), and record_send().
|
inlinestatic |
Definition at line 516 of file htup_details.h.
References DatumTupleFields::datum_typeid, HeapTupleHeaderData::t_choice, and HeapTupleHeaderData::t_datum.
Referenced by composite_to_json(), composite_to_jsonb(), deconstruct_composite_datum(), exec_move_row_from_datum(), ExecEvalFieldSelect(), ExecEvalRowNullInt(), ExecMakeTableFunctionResult(), ExecuteCallStmt(), get_expr_result_type(), GetAttributeByName(), GetAttributeByNum(), hash_record(), hash_record_extended(), HeapTupleHeaderGetDatum(), hstore_from_record(), hstore_populate_record(), make_expanded_record_from_datum(), make_tuple_indirect(), plperl_hash_from_datum(), pltcl_func_handler(), PLyDict_FromComposite(), populate_record_worker(), populate_recordset_worker(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_out(), and record_send().
|
inlinestatic |
Definition at line 397 of file htup_details.h.
References HEAP_XMAX_INVALID, HEAP_XMAX_IS_MULTI, HEAP_XMAX_LOCK_ONLY, HeapTupleGetUpdateXid(), and HeapTupleHeaderGetRawXmax().
Referenced by check_tuple_header(), heap_delete(), heap_get_latest_tid(), heap_get_root_tuples(), heap_hot_search_buffer(), heap_index_delete_tuples(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_prune_chain(), heap_prune_record_unchanged_lp_normal(), heap_update(), heapam_index_build_range_scan(), heapam_relation_copy_for_cluster(), heapam_scan_analyze_next_tuple(), heapam_tuple_lock(), HeapCheckForSerializableConflictOut(), HeapTupleHeaderAdvanceConflictHorizon(), HeapTupleHeaderGetCmax(), HeapTupleSatisfiesVacuumHorizon(), logical_rewrite_heap_tuple(), rewrite_heap_tuple(), and verify_heapam().
|
inlinestatic |
Definition at line 324 of file htup_details.h.
References HeapTupleHeaderData::t_choice, HeapTupleHeaderData::t_heap, and HeapTupleFields::t_xmin.
Referenced by bt_check_every_level(), check_safe_enum_use(), check_tuple_visibility(), find_inheritance_children_extended(), get_relation_info(), heap_fetch(), heap_get_latest_tid(), heap_get_root_tuples(), heap_hot_search_buffer(), heap_index_delete_tuples(), heap_lock_updated_tuple_rec(), heap_page_is_all_visible(), heap_prepare_freeze_tuple(), heap_prune_chain(), heap_prune_record_unchanged_lp_normal(), heap_tuple_needs_eventual_freeze(), heap_tuple_should_freeze(), heapam_index_build_range_scan(), heapam_relation_copy_for_cluster(), heapam_scan_analyze_next_tuple(), heapam_scan_bitmap_next_block(), heapam_tuple_lock(), HeapCheckForSerializableConflictOut(), HeapTupleHeaderAdvanceConflictHorizon(), HeapTupleHeaderGetCmin(), HeapTupleSatisfiesHistoricMVCC(), HeapTupleSatisfiesToast(), logical_rewrite_heap_tuple(), RelationReloadIndexInfo(), rewrite_heap_dead_tuple(), rewrite_heap_tuple(), tuple_all_visible(), and verify_heapam().
|
inlinestatic |
Definition at line 442 of file htup_details.h.
Referenced by check_tuple_visibility(), heap_prepare_freeze_tuple(), heap_tuple_needs_eventual_freeze(), heap_tuple_should_freeze(), HeapTupleHeaderAdvanceConflictHorizon(), HeapTupleSatisfiesDirty(), HeapTupleSatisfiesMVCC(), HeapTupleSatisfiesSelf(), HeapTupleSatisfiesToast(), HeapTupleSatisfiesUpdate(), and HeapTupleSatisfiesVacuumHorizon().
|
inlinestatic |
Definition at line 706 of file htup_details.h.
Referenced by ExecHashJoinImpl(), ExecParallelScanHashTableForUnmatched(), and ExecScanHashTableForUnmatched().
|
inlinestatic |
Definition at line 480 of file htup_details.h.
References ItemPointerSet(), SpecTokenOffsetNumber, HeapTupleHeaderData::t_ctid, and token.
Referenced by heap_get_latest_tid(), heap_get_root_tuples(), heap_lock_updated_tuple(), heap_lock_updated_tuple_rec(), heap_prune_chain(), and rewrite_heap_tuple().
|
inlinestatic |
Definition at line 555 of file htup_details.h.
References HeapTupleHeaderData::t_infomask2.
Referenced by check_tuple_header(), heap_abort_speculative(), heap_get_root_tuples(), heap_page_prune_and_freeze(), heap_page_prune_execute(), HeapTupleSetHeapOnly(), index_delete_check_htid(), page_verify_redirects(), and verify_heapam().
|
inlinestatic |
Definition at line 534 of file htup_details.h.
References HEAP_HOT_UPDATED, and HeapTupleHeaderData::t_infomask2.
Referenced by check_tuple_header(), heap_get_root_tuples(), heap_index_delete_tuples(), heap_page_prune_and_freeze(), heap_prune_chain(), and HeapTupleSetHotUpdated().
|
inlinestatic |
Definition at line 461 of file htup_details.h.
Referenced by heap_abort_speculative(), heap_finish_speculative(), heap_mask(), heapam_tuple_lock(), HeapTupleSatisfiesDirty(), and RelationPutHeapTuple().
|
inlinestatic |
Definition at line 431 of file htup_details.h.
Referenced by heap_delete(), heap_update(), heap_xlog_delete(), heap_xlog_lock(), and heap_xlog_update().
|
inlinestatic |
Definition at line 422 of file htup_details.h.
Referenced by apply_returning_filter(), fill_seq_fork_with_data(), heap_prepare_insert(), heap_update(), heap_xlog_insert(), heap_xlog_multi_insert(), heap_xlog_update(), and make_tuple_from_result_row().
|
inlinestatic |
Definition at line 498 of file htup_details.h.
References VARSIZE.
Referenced by ER_flatten_into(), expand_tuple(), heap_copy_tuple_as_datum(), heap_form_tuple(), and toast_flatten_tuple_to_datum().
|
inlinestatic |
Definition at line 561 of file htup_details.h.
References HEAP_ONLY_TUPLE, and HeapTupleHeaderData::t_infomask2.
Referenced by HeapTupleClearHeapOnly().
|
inlinestatic |
Definition at line 543 of file htup_details.h.
Referenced by heap_xlog_update(), and HeapTupleClearHotUpdated().
|
inlinestatic |
Definition at line 712 of file htup_details.h.
References HEAP_TUPLE_HAS_MATCH, and MinimalTupleData::t_infomask2.
Referenced by ExecHashJoinImpl().
|
inlinestatic |
Definition at line 486 of file htup_details.h.
References ItemPointerIndicatesMovedPartitions(), and HeapTupleHeaderData::t_ctid.
Referenced by heap_delete(), and heap_xlog_delete().
|
inlinestatic |
Definition at line 474 of file htup_details.h.
Referenced by heapam_tuple_insert_speculative().
|
inlinestatic |
Definition at line 510 of file htup_details.h.
References DatumTupleFields::datum_typeid, HeapTupleHeaderData::t_choice, and HeapTupleHeaderData::t_datum.
Referenced by coerce_function_result_tuple(), ER_flatten_into(), ExecEvalWholeRowVar(), expand_tuple(), heap_copy_tuple_as_datum(), heap_form_tuple(), and toast_flatten_tuple_to_datum().
|
inlinestatic |
Definition at line 522 of file htup_details.h.
References DatumTupleFields::datum_typmod, HeapTupleHeaderData::t_choice, and HeapTupleHeaderData::t_datum.
Referenced by coerce_function_result_tuple(), ER_flatten_into(), ExecEvalWholeRowVar(), expand_tuple(), heap_copy_tuple_as_datum(), heap_form_tuple(), and toast_flatten_tuple_to_datum().
|
inlinestatic |
Definition at line 383 of file htup_details.h.
References HeapTupleHeaderData::t_choice, HeapTupleHeaderData::t_heap, and HeapTupleFields::t_xmax.
Referenced by apply_returning_filter(), fill_seq_fork_with_data(), heap_delete(), heap_execute_freeze_tuple(), heap_force_common(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_prepare_insert(), heap_update(), heap_xlog_delete(), heap_xlog_lock(), heap_xlog_lock_updated(), heap_xlog_update(), make_tuple_from_result_row(), and read_seq_tuple().
|
inlinestatic |
Definition at line 331 of file htup_details.h.
Referenced by apply_returning_filter(), fill_seq_fork_with_data(), heap_abort_speculative(), heap_force_common(), heap_prepare_insert(), heap_update(), heap_xlog_delete(), heap_xlog_insert(), heap_xlog_multi_insert(), heap_xlog_update(), make_tuple_from_result_row(), and RelationReloadIndexInfo().
|
inlinestatic |
Definition at line 356 of file htup_details.h.
References HEAP_XMIN_FROZEN, and HeapTupleHeaderData::t_infomask.
|
inlinestatic |
Definition at line 370 of file htup_details.h.
Referenced by fill_seq_fork_with_data(), and heap_prepare_insert().
|
inlinestatic |
Definition at line 363 of file htup_details.h.
|
inlinestatic |
Definition at line 451 of file htup_details.h.
Referenced by heap_execute_freeze_tuple(), and heap_force_common().
|
inlinestatic |
Definition at line 337 of file htup_details.h.
References HeapTupleHeaderData::t_choice, HeapTupleHeaderData::t_heap, and HeapTupleFields::t_xmin.
Referenced by check_safe_enum_use(), check_tuple_visibility(), heap_page_is_all_visible(), heap_prune_record_unchanged_lp_normal(), HeapTupleHeaderAdjustCmax(), HeapTupleHeaderAdvanceConflictHorizon(), HeapTupleIsSurelyDead(), HeapTupleSatisfiesDirty(), HeapTupleSatisfiesHistoricMVCC(), HeapTupleSatisfiesMVCC(), HeapTupleSatisfiesSelf(), HeapTupleSatisfiesToast(), HeapTupleSatisfiesUpdate(), and HeapTupleSatisfiesVacuumHorizon().
|
inlinestatic |
Definition at line 350 of file htup_details.h.
Referenced by heap_mask(), heap_pre_freeze_checks(), and HeapTupleSatisfiesMVCC().
|
inlinestatic |
Definition at line 343 of file htup_details.h.
References HEAP_XMIN_COMMITTED, and HeapTupleHeaderData::t_infomask.
Referenced by check_tuple_visibility(), HeapTupleHeaderAdvanceConflictHorizon(), HeapTupleIsSurelyDead(), HeapTupleSatisfiesDirty(), HeapTupleSatisfiesHistoricMVCC(), HeapTupleSatisfiesMVCC(), HeapTupleSatisfiesSelf(), HeapTupleSatisfiesToast(), HeapTupleSatisfiesUpdate(), HeapTupleSatisfiesVacuumHorizon(), and log_heap_new_cid().
|
inlinestatic |
Definition at line 786 of file htup_details.h.
References HeapTupleHeaderClearHotUpdated(), and HeapTupleData::t_data.
Referenced by CatalogIndexInsert(), heap_hot_search_buffer(), heapam_index_build_range_scan(), heapam_index_validate_scan(), heapam_tuple_update(), and log_heap_update().
|
inlinestatic |
Definition at line 768 of file htup_details.h.
References HEAP_HASEXTERNAL, HeapTupleData::t_data, and HeapTupleHeaderData::t_infomask.
Referenced by heap_hot_search_buffer(), and heapam_index_build_range_scan().
|
inlinestatic |
Definition at line 744 of file htup_details.h.
References HEAP_HASNULL, HeapTupleData::t_data, and HeapTupleHeaderData::t_infomask.
Referenced by fastgetattr(), heap_attisnull(), and nocachegetattr().
|
inlinestatic |
Definition at line 792 of file htup_details.h.
References HeapTupleHeaderIsHeapOnly(), and HeapTupleData::t_data.
Referenced by heap_update().
|
inlinestatic |
Definition at line 774 of file htup_details.h.
References HeapTupleHeaderIsHotUpdated(), and HeapTupleData::t_data.
Referenced by heap_update().
MinimalTuple minimal_expand_tuple | ( | HeapTuple | sourceTuple, |
TupleDesc | tupleDesc | ||
) |
Definition at line 1054 of file heaptuple.c.
References expand_tuple().
MinimalTuple minimal_tuple_from_heap_tuple | ( | HeapTuple | htup | ) |
Definition at line 1577 of file heaptuple.c.
References Assert, len, MINIMAL_TUPLE_OFFSET, palloc(), HeapTupleData::t_data, HeapTupleData::t_len, and MinimalTupleData::t_len.
Referenced by copytup_heap(), tts_buffer_heap_copy_minimal_tuple(), and tts_heap_copy_minimal_tuple().
Definition at line 521 of file heaptuple.c.
References Assert, att_addlength_pointer, att_isnull(), att_nominal_alignby, att_pointer_alignby, CompactAttribute::attalignby, CompactAttribute::attcacheoff, CompactAttribute::attlen, attlen, attnum, fetchatt, HeapTupleHasNulls(), HeapTupleHasVarWidth(), HeapTupleNoNulls(), i, if(), j, TupleDescData::natts, HeapTupleHeaderData::t_bits, HeapTupleData::t_data, HeapTupleHeaderData::t_hoff, and TupleDescCompactAttr().
Referenced by fastgetattr().
StaticAssertDecl | ( | ) |
size_t varsize_any | ( | void * | p | ) |
Definition at line 1595 of file heaptuple.c.
References VARSIZE_ANY.