#include "c.h"
#include "utils/elog.h"
#include "utils/palloc.h"
Go to the source code of this file.
Data Structures | |
struct | varatt_external |
union | varattrib_4b |
struct | varattrib_1b |
struct | varattrib_1b_e |
Defines | |
#define | VARATT_IS_4B(PTR) ((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x00) |
#define | VARATT_IS_4B_U(PTR) ((((varattrib_1b *) (PTR))->va_header & 0x03) == 0x00) |
#define | VARATT_IS_4B_C(PTR) ((((varattrib_1b *) (PTR))->va_header & 0x03) == 0x02) |
#define | VARATT_IS_1B(PTR) ((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x01) |
#define | VARATT_IS_1B_E(PTR) ((((varattrib_1b *) (PTR))->va_header) == 0x01) |
#define | VARATT_NOT_PAD_BYTE(PTR) (*((uint8 *) (PTR)) != 0) |
#define | VARSIZE_4B(PTR) ((((varattrib_4b *) (PTR))->va_4byte.va_header >> 2) & 0x3FFFFFFF) |
#define | VARSIZE_1B(PTR) ((((varattrib_1b *) (PTR))->va_header >> 1) & 0x7F) |
#define | VARSIZE_1B_E(PTR) (((varattrib_1b_e *) (PTR))->va_len_1be) |
#define | SET_VARSIZE_4B(PTR, len) (((varattrib_4b *) (PTR))->va_4byte.va_header = (((uint32) (len)) << 2)) |
#define | SET_VARSIZE_4B_C(PTR, len) (((varattrib_4b *) (PTR))->va_4byte.va_header = (((uint32) (len)) << 2) | 0x02) |
#define | SET_VARSIZE_1B(PTR, len) (((varattrib_1b *) (PTR))->va_header = (((uint8) (len)) << 1) | 0x01) |
#define | SET_VARSIZE_1B_E(PTR, len) |
#define | VARHDRSZ_SHORT 1 |
#define | VARATT_SHORT_MAX 0x7F |
#define | VARATT_CAN_MAKE_SHORT(PTR) |
#define | VARATT_CONVERTED_SHORT_SIZE(PTR) (VARSIZE(PTR) - VARHDRSZ + VARHDRSZ_SHORT) |
#define | VARHDRSZ_EXTERNAL 2 |
#define | VARDATA_4B(PTR) (((varattrib_4b *) (PTR))->va_4byte.va_data) |
#define | VARDATA_4B_C(PTR) (((varattrib_4b *) (PTR))->va_compressed.va_data) |
#define | VARDATA_1B(PTR) (((varattrib_1b *) (PTR))->va_data) |
#define | VARDATA_1B_E(PTR) (((varattrib_1b_e *) (PTR))->va_data) |
#define | VARRAWSIZE_4B_C(PTR) (((varattrib_4b *) (PTR))->va_compressed.va_rawsize) |
#define | VARDATA(PTR) VARDATA_4B(PTR) |
#define | VARSIZE(PTR) VARSIZE_4B(PTR) |
#define | VARSIZE_SHORT(PTR) VARSIZE_1B(PTR) |
#define | VARDATA_SHORT(PTR) VARDATA_1B(PTR) |
#define | VARSIZE_EXTERNAL(PTR) VARSIZE_1B_E(PTR) |
#define | VARDATA_EXTERNAL(PTR) VARDATA_1B_E(PTR) |
#define | VARATT_IS_COMPRESSED(PTR) VARATT_IS_4B_C(PTR) |
#define | VARATT_IS_EXTERNAL(PTR) VARATT_IS_1B_E(PTR) |
#define | VARATT_IS_SHORT(PTR) VARATT_IS_1B(PTR) |
#define | VARATT_IS_EXTENDED(PTR) (!VARATT_IS_4B_U(PTR)) |
#define | SET_VARSIZE(PTR, len) SET_VARSIZE_4B(PTR, len) |
#define | SET_VARSIZE_SHORT(PTR, len) SET_VARSIZE_1B(PTR, len) |
#define | SET_VARSIZE_COMPRESSED(PTR, len) SET_VARSIZE_4B_C(PTR, len) |
#define | SET_VARSIZE_EXTERNAL(PTR, len) SET_VARSIZE_1B_E(PTR, len) |
#define | VARSIZE_ANY(PTR) |
#define | VARSIZE_ANY_EXHDR(PTR) |
#define | VARDATA_ANY(PTR) (VARATT_IS_1B(PTR) ? VARDATA_1B(PTR) : VARDATA_4B(PTR)) |
#define | SIZEOF_DATUM SIZEOF_VOID_P |
#define | GET_1_BYTE(datum) (((Datum) (datum)) & 0x000000ff) |
#define | GET_2_BYTES(datum) (((Datum) (datum)) & 0x0000ffff) |
#define | GET_4_BYTES(datum) (((Datum) (datum)) & 0xffffffff) |
#define | SET_1_BYTE(value) (((Datum) (value)) & 0x000000ff) |
#define | SET_2_BYTES(value) (((Datum) (value)) & 0x0000ffff) |
#define | SET_4_BYTES(value) (((Datum) (value)) & 0xffffffff) |
#define | DatumGetBool(X) ((bool) (((bool) (X)) != 0)) |
#define | BoolGetDatum(X) ((Datum) ((X) ? 1 : 0)) |
#define | DatumGetChar(X) ((char) GET_1_BYTE(X)) |
#define | CharGetDatum(X) ((Datum) SET_1_BYTE(X)) |
#define | Int8GetDatum(X) ((Datum) SET_1_BYTE(X)) |
#define | DatumGetUInt8(X) ((uint8) GET_1_BYTE(X)) |
#define | UInt8GetDatum(X) ((Datum) SET_1_BYTE(X)) |
#define | DatumGetInt16(X) ((int16) GET_2_BYTES(X)) |
#define | Int16GetDatum(X) ((Datum) SET_2_BYTES(X)) |
#define | DatumGetUInt16(X) ((uint16) GET_2_BYTES(X)) |
#define | UInt16GetDatum(X) ((Datum) SET_2_BYTES(X)) |
#define | DatumGetInt32(X) ((int32) GET_4_BYTES(X)) |
#define | Int32GetDatum(X) ((Datum) SET_4_BYTES(X)) |
#define | DatumGetUInt32(X) ((uint32) GET_4_BYTES(X)) |
#define | UInt32GetDatum(X) ((Datum) SET_4_BYTES(X)) |
#define | DatumGetObjectId(X) ((Oid) GET_4_BYTES(X)) |
#define | ObjectIdGetDatum(X) ((Datum) SET_4_BYTES(X)) |
#define | DatumGetTransactionId(X) ((TransactionId) GET_4_BYTES(X)) |
#define | TransactionIdGetDatum(X) ((Datum) SET_4_BYTES((X))) |
#define | MultiXactIdGetDatum(X) ((Datum) SET_4_BYTES((X))) |
#define | DatumGetCommandId(X) ((CommandId) GET_4_BYTES(X)) |
#define | CommandIdGetDatum(X) ((Datum) SET_4_BYTES(X)) |
#define | DatumGetPointer(X) ((Pointer) (X)) |
#define | PointerGetDatum(X) ((Datum) (X)) |
#define | DatumGetCString(X) ((char *) DatumGetPointer(X)) |
#define | CStringGetDatum(X) PointerGetDatum(X) |
#define | DatumGetName(X) ((Name) DatumGetPointer(X)) |
#define | NameGetDatum(X) PointerGetDatum(X) |
#define | DatumGetInt64(X) (* ((int64 *) DatumGetPointer(X))) |
#define | DatumGetFloat4(X) (* ((float4 *) DatumGetPointer(X))) |
#define | DatumGetFloat8(X) (* ((float8 *) DatumGetPointer(X))) |
#define | Int64GetDatumFast(X) PointerGetDatum(&(X)) |
#define | Float8GetDatumFast(X) PointerGetDatum(&(X)) |
#define | Float4GetDatumFast(X) PointerGetDatum(&(X)) |
Typedefs | |
typedef uintptr_t | Datum |
typedef Datum * | DatumPtr |
Functions | |
Datum | Int64GetDatum (int64 X) |
Datum | Float4GetDatum (float4 X) |
Datum | Float8GetDatum (float8 X) |
void | ExceptionalCondition (const char *conditionName, const char *errorType, const char *fileName, int lineNumber) __attribute__((noreturn)) |
Variables | |
PGDLLIMPORT bool | assert_enabled |
#define BoolGetDatum | ( | X | ) | ((Datum) ((X) ? 1 : 0)) |
Definition at line 338 of file postgres.h.
Referenced by aclexplode(), AddRoleMems(), AlterRole(), ApplyExtensionUpdates(), btcostestimate(), build_coercion_expression(), ConversionCreate(), create_proc_lang(), CreateConstraintEntry(), createdb(), CreateRole(), CreateTrigger(), DefineOpClass(), DefineSequence(), DelRoleMems(), do_pg_start_backup(), eval_const_expressions_mutator(), examine_simple_variable(), examine_variable(), exec_set_found(), ExecEvalAnd(), ExecEvalArrayCoerceExpr(), ExecEvalBooleanTest(), ExecEvalDistinct(), ExecEvalNot(), ExecEvalNullTest(), ExecEvalOr(), ExecEvalRowCompare(), ExecEvalScalarArrayOp(), ExecEvalXml(), ExecHashBuildSkewHash(), ExecHashSubPlan(), ExecScanSubPlan(), ExecSetParamPlan(), get_attavgwidth(), get_available_versions_for_extension(), get_tables_to_cluster(), index_reloptions(), InsertExtensionTuple(), InsertPgAttributeTuple(), InsertPgClassTuple(), InsertRule(), makeBoolConst(), OperatorCreate(), OperatorShellMake(), pg_buffercache_pages(), pg_cursor(), pg_lock_status(), pg_prepared_statement(), pg_sequence_parameters(), pg_stat_file(), pg_stat_get_activity(), pg_timezone_abbrevs(), pg_timezone_names(), PLyObject_ToBool(), ProcedureCreate(), ri_AttributesEqual(), TypeCreate(), TypeShellMake(), update_attstats(), and UpdateIndexRelation().
#define CharGetDatum | ( | X | ) | ((Datum) SET_1_BYTE(X)) |
Definition at line 352 of file postgres.h.
Referenced by CreateCast(), CreateConstraintEntry(), CreateTrigger(), do_autovacuum(), EnableDisableRule(), examine_parameter_list(), get_default_acl_internal(), get_op_opfamily_properties(), get_op_opfamily_sortfamily(), get_op_opfamily_strategy(), getRelationsInNamespace(), insert_event_trigger_tuple(), InsertPgAttributeTuple(), InsertPgClassTuple(), InsertRule(), leftmostvalue_char(), op_in_opfamily(), OperatorCreate(), OperatorShellMake(), ProcedureCreate(), recordMultipleDependencies(), SetDefaultACL(), shdepAddDependency(), shdepChangeDep(), storeOperators(), TypeCreate(), and TypeShellMake().
#define CommandIdGetDatum | ( | X | ) | ((Datum) SET_4_BYTES(X)) |
Definition at line 478 of file postgres.h.
Referenced by heap_getsysattr().
#define CStringGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 514 of file postgres.h.
Referenced by AddEnumLabel(), AfterTriggerSetState(), AlterEventTrigger(), AlterEventTriggerOwner(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner(), AlterForeignServer(), AlterForeignServerOwner(), AlterObjectRename_internal(), AlterOpFamily(), AlterRole(), AlterSchemaOwner(), AlterTableSpaceOptions(), AlterTypeNamespaceInternal(), check_timezone(), ChooseConstraintName(), ConstraintNameIsUsed(), convert_function_name(), convert_type_name(), CreateConversionCommand(), createdb(), CreateEventTrigger(), CreateForeignDataWrapper(), CreateForeignServer(), CreateOpFamily(), CreateRole(), CreateTableSpace(), CreateTrigger(), current_schema(), current_schemas(), current_user(), defGetInt64(), DefineCompositeType(), DefineDomain(), DefineEnum(), DefineOpClass(), DefineRange(), DefineType(), DropTableSpace(), EnableDisableTrigger(), enum_in(), enum_recv(), ExecAlterExtensionStmt(), flatten_set_variable_args(), FuncnameGetCandidates(), funny_dup17(), get_am_oid(), get_available_versions_for_extension(), get_database_oid(), get_event_trigger_oid(), get_extension_oid(), get_foreign_data_wrapper_oid(), get_foreign_server_oid(), get_language_oid(), get_namespace_oid(), get_rewrite_oid_without_relid(), get_role_oid(), get_tablespace_oid(), get_trigger_oid(), getdatabaseencoding(), GetDatabaseTuple(), heap_create_with_catalog(), inet_client_port(), inet_server_port(), InputFunctionCall(), InsertExtensionTuple(), IsThereCollationInNamespace(), IsThereFunctionInNamespace(), IsThereOpClassInNamespace(), IsThereOpFamilyInNamespace(), leftmostvalue_bit(), leftmostvalue_inet(), leftmostvalue_varbit(), make_const(), make_tuple_from_result_row(), makeArrayTypeName(), MergeWithExistingConstraint(), moddatetime(), NextCopyFrom(), numeric_float4(), numeric_float8(), numeric_to_number(), OpernameGetCandidates(), OpernameGetOprid(), parsetinterval(), perform_default_encoding_conversion(), pg_available_extensions(), pg_backup_start_time(), pg_client_encoding(), pg_convert_from(), pg_convert_to(), pg_do_encoding_conversion(), PG_encoding_to_char(), pg_stat_get_activity(), pg_stat_get_backend_client_addr(), pg_stat_get_backend_client_port(), plperl_sv_to_literal(), plpgsql_exec_trigger(), poly2path(), readRecoveryCommandFile(), regclassin(), regconfigin(), regdictionaryin(), regoperatorin(), regoperin(), regprocedurein(), regprocin(), regtypein(), RenameRole(), RenameSchema(), RenameTableSpace(), RenameTypeInternal(), SearchSysCacheAttName(), session_user(), special_uuid_value(), ssl_client_serial(), string_to_datum(), tsa_headline_byname(), TypeCreate(), typenameTypeMod(), and uuid_generate_internal().
Definition at line 329 of file postgres.h.
Referenced by _bt_checkkeys(), _bt_compare_scankey_args(), _bt_find_extreme_element(), _hash_checkqual(), _int_different(), abs_interval(), array_contain_compare(), array_eq(), array_iterator(), array_ne(), array_replace_internal(), booltestsel(), btree_predicate_proof(), callConsistentFn(), check_constant_qual(), clause_selectivity(), close_pb(), close_sb(), compute_minimal_stats(), convert_numeric_to_scalar(), datum_to_json(), domain_check_input(), eqjoinsel_inner(), eqjoinsel_semi(), eval_const_expressions_mutator(), examine_attribute(), exec_eval_boolean(), ExecEvalAnd(), ExecEvalBooleanTest(), ExecEvalCase(), ExecEvalCoerceToDomain(), ExecEvalDistinct(), ExecEvalNot(), ExecEvalNullIf(), ExecEvalOr(), ExecEvalScalarArrayOp(), ExecEvalXml(), ExecQual(), ExecScanSubPlan(), execTuplesMatch(), execTuplesUnequal(), gbt_biteq(), gbt_bitge(), gbt_bitgt(), gbt_bitle(), gbt_bitlt(), gbt_byteaeq(), gbt_byteage(), gbt_byteagt(), gbt_byteale(), gbt_bytealt(), gbt_dateeq(), gbt_datege(), gbt_dategt(), gbt_datele(), gbt_datelt(), gbt_intveq(), gbt_intvge(), gbt_intvgt(), gbt_intvle(), gbt_intvlt(), gbt_macadeq(), gbt_macadge(), gbt_macadgt(), gbt_macadle(), gbt_macadlt(), gbt_numeric_eq(), gbt_numeric_ge(), gbt_numeric_gt(), gbt_numeric_le(), gbt_numeric_lt(), gbt_texteq(), gbt_textge(), gbt_textgt(), gbt_textle(), gbt_textlt(), gbt_timeeq(), gbt_timege(), gbt_timegt(), gbt_timele(), gbt_timelt(), gbt_tseq(), gbt_tsge(), gbt_tsgt(), gbt_tsle(), gbt_tslt(), get_rule_expr(), get_variable_range(), gist_box_leaf_consistent(), gist_point_consistent(), gistindex_keytest(), histogram_selectivity(), index_can_return(), index_getnext_tid(), index_insert(), index_recheck_constraint(), ineq_histogram_selectivity(), inter_sb(), interpt_pp(), intinterval(), is_dummy_plan(), line_distance(), line_interpt_internal(), line_intersect(), lt_q_regex(), ltree_consistent(), make_ands_implicit(), make_greater_string(), make_ruledef(), map_sql_value_to_xml_value(), mcv_selectivity(), negate_clause(), numeric_is_less(), on_sb(), on_sl(), pg_start_backup_callback(), PLyBool_FromBool(), poly_contain(), process_implied_equality(), process_ordered_aggregate_single(), range_intersect(), range_union(), record_eq(), record_ne(), restriction_is_constant_false(), ri_AttributesEqual(), rtree_internal_consistent(), set_append_rel_size(), simplify_and_arguments(), simplify_boolean_equality(), simplify_or_arguments(), spg_quad_inner_consistent(), spgLeafTest(), text_isequal(), tintervalct(), tintervalov(), tintervalsame(), ts_match_tq(), ts_match_tt(), validateDomainConstraint(), and var_eq_const().
#define DatumGetChar | ( | X | ) | ((char) GET_1_BYTE(X)) |
Definition at line 345 of file postgres.h.
Referenced by convert_string_datum(), EnableDisableRule(), and make_ruledef().
#define DatumGetCommandId | ( | X | ) | ((CommandId) GET_4_BYTES(X)) |
Definition at line 471 of file postgres.h.
#define DatumGetCString | ( | X | ) | ((char *) DatumGetPointer(X)) |
Definition at line 502 of file postgres.h.
Referenced by ArrayGetIntegerTypmods(), build_dummy_tuple(), coerce_type(), compute_minimal_stats(), compute_scalar_stats(), CopyOneRowTo(), datum_write(), exec_eval_using_params(), flatten_set_variable_args(), heap_fill_tuple(), int4_to_char(), int8_to_char(), make_greater_string(), numeric_float4(), numeric_float8(), numeric_to_char(), numeric_to_cstring(), numeric_to_double_no_overflow(), OutputFunctionCall(), patternsel(), pg_column_size(), plperl_trigger_build_args(), pltcl_trigger_handler(), PLy_trigger_build_args(), prefix_quals(), printTypmod(), RelationBuildTriggers(), set_timetravel(), show_timezone(), table_to_xml_internal(), timestamp_izone(), timestamptz_izone(), timetz_izone(), tintervalout(), tsa_set_curcfg(), and uuid_generate_v35_internal().
#define DatumGetFloat4 | ( | X | ) | (* ((float4 *) DatumGetPointer(X))) |
Definition at line 570 of file postgres.h.
Referenced by AddEnumLabel(), btfloat4fastcmp(), convert_numeric_to_scalar(), gbt_num_compress(), PLyFloat_FromFloat4(), similarity_dist(), and similarity_op().
#define DatumGetFloat8 | ( | X | ) | (* ((float8 *) DatumGetPointer(X))) |
Definition at line 593 of file postgres.h.
Referenced by btfloat8fastcmp(), calc_length_hist_frac(), call_subtype_diff(), compute_range_stats(), convert_numeric_to_scalar(), gbt_num_compress(), gbt_numeric_penalty(), get_distance(), get_position(), gistindex_keytest(), join_selectivity(), length_hist_bsearch(), neqjoinsel(), neqsel(), numrange_subdiff(), path_distance(), PLyFloat_FromFloat8(), PLyFloat_FromNumeric(), regress_dist_ptpath(), regress_path_dist(), restriction_selectivity(), scalararraysel(), spg_kd_choose(), and spg_kd_inner_consistent().
#define DatumGetInt16 | ( | X | ) | ((int16) GET_2_BYTES(X)) |
Definition at line 380 of file postgres.h.
Referenced by btint2fastcmp(), convert_numeric_to_scalar(), decompile_column_index_array(), gbt_num_compress(), make_ruledef(), PLyInt_FromInt16(), and text_format().
#define DatumGetInt32 | ( | X | ) | ((int32) GET_4_BYTES(X)) |
Definition at line 408 of file postgres.h.
Referenced by _bt_check_rowcompare(), _bt_compare(), _bt_compare_array_elements(), _bt_isequal(), _bt_load(), _bt_sort_array_elements(), array_cmp(), autoinc(), AuxiliaryProcKill(), btint4fastcmp(), c_overpaid(), CleanupProcSignalState(), cmpEntries(), collectMatchBitmap(), convert_numeric_to_scalar(), date_dist(), element_compare(), exec_eval_integer(), exec_stmt_fori(), ExecEvalArrayRef(), ExecEvalMinMax(), ExecEvalRowCompare(), ExecEvalXml(), ExecMergeAppend(), exprIsLengthCoercion(), fetch_tuple_flag(), funny_dup17(), gbt_bitcmp(), gbt_byteacmp(), gbt_date_penalty(), gbt_datekey_cmp(), gbt_intvkey_cmp(), gbt_macadkey_cmp(), gbt_num_compress(), gbt_numeric_cmp(), gbt_textcmp(), gbt_timekey_cmp(), gbt_tskey_cmp(), gdb_date_dist(), get_rule_expr(), gin_numeric_cmp(), ginCompareEntries(), heap_compare_slots(), hlparsetext(), hstore_eq(), hstore_ge(), hstore_gt(), hstore_le(), hstore_lt(), hstore_ne(), initialize_worker_spi(), inlineApplySortFunction(), int8_to_char(), interval_transform(), IpcMemoryDelete(), leadlag_common(), matchPartialInPendingList(), numeric_to_char(), numeric_transform(), oidvectoreq(), oidvectorge(), oidvectorgt(), oidvectorle(), oidvectorlt(), oidvectorne(), overpaid(), parsetext(), pg_stat_get_activity(), PLyInt_FromInt32(), prs_setup_firstcall(), range_cmp_bound_values(), range_cmp_bounds(), range_contains_elem_internal(), record_cmp(), TemporalTransform(), text_format(), timetravel(), toast_fetch_datum(), toast_fetch_datum_slice(), typenameTypeMod(), varbit_transform(), varchar_transform(), window_nth_value(), window_ntile(), and worker_spi_main().
#define DatumGetInt64 | ( | X | ) | (* ((int64 *) DatumGetPointer(X))) |
Definition at line 543 of file postgres.h.
Referenced by autoinc(), btint8fastcmp(), convert_numeric_to_scalar(), defGetInt64(), ExecWindowAgg(), gbt_num_compress(), index_getbitmap(), int4_cash(), int8_cash(), int8_to_char(), limit_needed(), numeric_cash(), PLyLong_FromInt64(), preprocess_limit(), recompute_limits(), row_is_in_frame(), ttdummy(), update_frameheadpos(), and update_frametailpos().
#define DatumGetName | ( | X | ) | ((Name) DatumGetPointer(X)) |
Definition at line 521 of file postgres.h.
Referenced by AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), btnamefastcmp(), EventTriggerSQLDropAddObject(), make_ruledef(), and pg_identify_object().
#define DatumGetObjectId | ( | X | ) | ((Oid) GET_4_BYTES(X)) |
Definition at line 436 of file postgres.h.
Referenced by AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), btoidfastcmp(), build_dummy_tuple(), convert_function_name(), convert_numeric_to_scalar(), convert_type_name(), DefineTSParser(), DefineTSTemplate(), EvalPlanQualFetchRowMarks(), EventTriggerSQLDropAddObject(), execCurrentOf(), ExecLockRows(), find_expr_references_walker(), fix_expr_common(), gbt_num_compress(), generateClonedIndexStmt(), get_object_namespace(), heap_tuple_attr_equals(), LexizeExec(), make_ruledef(), NextCopyFrom(), pg_get_constraintdef_worker(), PLyLong_FromOid(), pushval_morph(), query_to_oid_list(), regclassin(), regconfigin(), regdictionaryin(), regoperatorin(), regoperin(), regprocedurein(), regprocin(), regtypein(), sepgsql_relation_setattr_extra(), tsa_headline_byname(), and tsvector_update_trigger().
#define DatumGetPointer | ( | X | ) | ((Pointer) (X)) |
Definition at line 485 of file postgres.h.
Referenced by _bt_check_rowcompare(), _bt_end_vacuum_callback(), _bt_first(), _bt_fix_scankey_strategy(), _bt_mark_scankey_required(), _ltree_compress(), _ltree_consistent(), _ltree_penalty(), _outDatum(), advance_transition_function(), advance_windowaggregate(), AlterForeignDataWrapper(), AlterForeignServer(), AlterUserMapping(), ArrayCastAndSet(), ATExecAlterColumnGenericOptions(), ATExecGenericOptions(), CheckIndexCompatible(), CleanupInvalidationState(), collectMatchBitmap(), compileTheLexeme(), compileTheSubstitute(), composite_to_json(), compute_minimal_stats(), compute_range_stats(), compute_scalar_stats(), compute_tsvector_stats(), convert_bytea_to_scalar(), convert_string_datum(), CopyArrayEls(), createdb_failure_callback(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateTrigger(), CreateUserMapping(), datum_compute_size(), datum_write(), datumCopy(), datumGetSize(), datumIsEqual(), debugtup(), do_text_output_multiline(), eval_windowaggregates(), eval_windowfunction(), EvalPlanQualFetchRowMarks(), exec_assign_value(), exec_stmt_foreach_a(), exec_stmt_return(), ExecCallTriggerFunc(), execCurrentOf(), ExecEvalArrayRef(), ExecEvalXml(), ExecInitCteScan(), ExecLockRows(), ExecModifyTable(), ExecSetParamPlan(), ExecWorkTableScan(), finalize_aggregate(), finalize_windowaggregate(), fmgr(), free_attstatsslot(), free_params_data(), free_var(), freeScanStackEntry(), g_int_compress(), g_int_consistent(), g_int_decompress(), g_int_penalty(), g_intbig_compress(), g_intbig_consistent(), g_intbig_penalty(), gbt_bit_consistent(), gbt_bpchar_consistent(), gbt_bytea_consistent(), gbt_cash_consistent(), gbt_cash_distance(), gbt_cash_penalty(), gbt_date_consistent(), gbt_date_distance(), gbt_date_penalty(), gbt_float4_consistent(), gbt_float4_distance(), gbt_float4_penalty(), gbt_float8_consistent(), gbt_float8_distance(), gbt_float8_penalty(), gbt_inet_consistent(), gbt_inet_penalty(), gbt_int2_consistent(), gbt_int2_distance(), gbt_int2_penalty(), gbt_int4_consistent(), gbt_int4_distance(), gbt_int4_penalty(), gbt_int8_consistent(), gbt_int8_distance(), gbt_int8_penalty(), gbt_intv_compress(), gbt_intv_consistent(), gbt_intv_decompress(), gbt_intv_distance(), gbt_intv_penalty(), gbt_macad_consistent(), gbt_macad_penalty(), gbt_num_bin_union(), gbt_num_compress(), gbt_num_picksplit(), gbt_num_union(), gbt_numeric_consistent(), gbt_numeric_penalty(), gbt_oid_consistent(), gbt_oid_distance(), gbt_oid_penalty(), gbt_text_consistent(), gbt_time_consistent(), gbt_time_distance(), gbt_time_penalty(), gbt_timetz_consistent(), gbt_ts_consistent(), gbt_ts_distance(), gbt_ts_penalty(), gbt_tstz_consistent(), gbt_tstz_distance(), gbt_var_bin_union(), gbt_var_compress(), gbt_var_decompress(), gbt_var_penalty(), gbt_var_picksplit(), gbt_var_same(), gbt_var_union(), generateClonedIndexStmt(), get_attstatsslot(), getDatumCopy(), GetFdwRoutine(), getTokenTypes(), ghstore_compress(), ghstore_consistent(), ghstore_penalty(), gin_extract_hstore_query(), ginExtractEntries(), ginNewScanKey(), gist_poly_compress(), gistcentryinit(), gistdentryinit(), gseg_consistent(), gseg_penalty(), gseg_picksplit(), gseg_union(), gtrgm_compress(), gtrgm_consistent(), gtrgm_decompress(), gtrgm_distance(), gtrgm_penalty(), gtsvector_compress(), gtsvector_consistent(), gtsvector_decompress(), gtsvector_penalty(), gtsvectorout(), heap_compute_data_size(), heap_fill_tuple(), heap_form_tuple(), hlparsetext(), hstore_slice_to_array(), hstoreUpgrade(), index_beginscan_internal(), index_build(), index_bulk_delete(), index_form_tuple(), index_getbitmap(), index_reloptions(), index_vacuum_cleanup(), int2vectorrecv(), interval_accum(), interval_avg(), InvalidateTSCacheCallBack(), IpcMemoryDetach(), json_agg_transfn(), LexizeExec(), like_fixed_prefix(), lookup_ts_dictionary_cache(), ltree_addtext(), ltree_compress(), ltree_consistent(), ltree_decompress(), ltree_penalty(), ltree_textadd(), make_greater_string(), make_tuple_from_result_row(), match_special_index_operator(), mcelem_tsquery_selec(), memcpyDatum(), movedb_failure_callback(), oidvectorrecv(), parseRelOptions(), parsetext(), patternsel(), pg_attribute_aclmask(), pg_class_aclmask(), pg_database_aclmask(), pg_foreign_data_wrapper_aclmask(), pg_foreign_server_aclmask(), pg_get_indexdef_worker(), pg_language_aclmask(), pg_largeobject_aclmask_snapshot(), pg_namespace_aclmask(), pg_proc_aclmask(), pg_tablespace_aclmask(), pg_type_aclmask(), pgwin32_SharedMemoryDelete(), plpgsql_exec_function(), plpgsql_exec_trigger(), plpgsql_inline_handler(), plpython_inline_handler(), PLy_cursor_plan(), PLy_spi_execute_plan(), postgresExecForeignDelete(), postgresExecForeignUpdate(), printtup(), printtup_20(), printtup_internal_20(), ProcedureCreate(), process_ordered_aggregate_single(), prs_setup_firstcall(), prune_element_hashtable(), record_out(), record_send(), RelationGetIndexList(), RelationInitIndexAccessInfo(), ri_LoadConstraintInfo(), sepgsql_fmgr_hook(), show_trgm(), ShowAllGUCConfig(), shutdown_MultiFuncCall(), ShutdownFuncExpr(), ShutdownSQLFunction(), ShutdownTupleDescRef(), simplify_function(), spg_text_inner_consistent(), spg_text_leaf_consistent(), SPI_getvalue(), StoreAttrDefault(), text2ltree(), text_substring(), thesaurus_lexize(), TidListCreate(), to_json(), toast_compress_datum(), toast_datum_size(), toast_delete_datum(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_flatten_tuple(), toast_flatten_tuple_attribute(), toast_insert_or_update(), toast_raw_datum_size(), toast_save_datum(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformGenericOptions(), transformIndexConstraint(), transformRelOptions(), ts_accum(), ts_lexize(), tsquery_rewrite_query(), tstoreReceiveSlot_detoast(), tsvector_update_trigger(), tt_setup_firstcall(), tuplesort_putdatum(), unaccent_dict(), untransformRelOptions(), validate_index_heapscan(), and writetup_datum().
#define DatumGetTransactionId | ( | X | ) | ((TransactionId) GET_4_BYTES(X)) |
Definition at line 450 of file postgres.h.
#define DatumGetUInt16 | ( | X | ) | ((uint16) GET_2_BYTES(X)) |
Definition at line 394 of file postgres.h.
Referenced by gintuple_get_attrnum().
#define DatumGetUInt32 | ( | X | ) | ((uint32) GET_4_BYTES(X)) |
Definition at line 422 of file postgres.h.
Referenced by _hash_datum2hashkey(), _hash_datum2hashkey_type(), bms_hash_value(), CatalogCacheComputeHashValue(), comparetup_index_hash(), element_hash(), ExecHashBuildSkewHash(), ExecHashGetHashValue(), hash_array(), hash_range(), lexeme_hash(), oid_hash(), string_hash(), tag_hash(), timetz_hash(), and TupleHashTableHash().
#define DatumGetUInt8 | ( | X | ) | ((uint8) GET_1_BYTE(X)) |
Definition at line 366 of file postgres.h.
Referenced by searchChar(), and spg_text_inner_consistent().
#define Float4GetDatumFast | ( | X | ) | PointerGetDatum(&(X)) |
Definition at line 632 of file postgres.h.
#define Float8GetDatumFast | ( | X | ) | PointerGetDatum(&(X)) |
Definition at line 626 of file postgres.h.
Referenced by float4_accum(), float8_accum(), float8_regr_accum(), interval_hash(), pg_stat_statements(), and timetz_hash().
#define GET_1_BYTE | ( | datum | ) | (((Datum) (datum)) & 0x000000ff) |
Definition at line 308 of file postgres.h.
#define GET_2_BYTES | ( | datum | ) | (((Datum) (datum)) & 0x0000ffff) |
Definition at line 309 of file postgres.h.
#define GET_4_BYTES | ( | datum | ) | (((Datum) (datum)) & 0xffffffff) |
Definition at line 310 of file postgres.h.
#define Int16GetDatum | ( | X | ) | ((Datum) SET_2_BYTES(X)) |
Definition at line 387 of file postgres.h.
Referenced by btcostestimate(), column_privilege_check(), CreateConstraintEntry(), CreateTrigger(), DeleteSystemAttributeTuples(), dropOperators(), dropProcedures(), examine_simple_variable(), examine_variable(), ExecGrant_Attribute(), ExecHashBuildSkewHash(), expand_all_col_privileges(), fixup_whole_row_references(), get_attavgwidth(), get_attname(), get_attribute_options(), get_atttype(), get_atttypetypmodcoll(), get_atttypmod(), get_opfamily_member(), get_opfamily_proc(), get_rte_attribute_is_dropped(), get_rte_attribute_type(), GetForeignColumnOptions(), gist_point_consistent(), index_check_primary_key(), InsertPgAttributeTuple(), InsertPgClassTuple(), InsertRule(), join_selectivity(), leftmostvalue_int2(), neqjoinsel(), pg_attribute_aclcheck_all(), pg_attribute_aclmask(), pg_buffercache_pages(), pg_lock_status(), plpgsql_exec_trigger(), RelationBuildTupleDesc(), RemoveAttrDefault(), RemoveAttrDefaultById(), RemoveAttributeById(), RemoveStatistics(), scalararraysel(), scanRTEForColumn(), sepgsql_attribute_post_create(), StoreAttrDefault(), StoreCatalogInheritance1(), storeOperators(), storeProcedures(), TypeCreate(), TypeShellMake(), update_attstats(), and UpdateIndexRelation().
#define Int32GetDatum | ( | X | ) | ((Datum) SET_4_BYTES(X)) |
Definition at line 415 of file postgres.h.
Referenced by AlterDatabase(), AlterRole(), ATExecAlterColumnType(), autoinc(), bitshiftleft(), bitshiftright(), build_coercion_expression(), build_regexp_matches_result(), build_regexp_split_result(), cash_numeric(), check_timezone(), CollationCreate(), CollationGetCollid(), compileTheLexeme(), compileTheSubstitute(), ConversionCreate(), CreateComments(), CreateConstraintEntry(), CreateConversionCommand(), createdb(), CreateRole(), daterange_canonical(), dblink_get_notify(), DeleteComments(), deleteOneObject(), DeleteSecurityLabel(), drop_parent_dependency(), DropConfigurationMapping(), eval_const_expressions_mutator(), exec_stmt_fori(), ExecEvalArrayCoerceExpr(), ExecMergeAppend(), FindDefaultConversion(), findDependentObjects(), flatten_set_variable_args(), gbt_numeric_penalty(), generate_series_step_int4(), generate_setop_tlist(), generate_subscripts(), get_collation_oid(), get_constraint_index(), get_index_constraint(), GetComment(), GetSecurityLabel(), gin_extract_query_trgm(), gin_extract_value_trgm(), ginint4_queryextract(), gistindex_keytest(), hlparsetext(), index_beginscan_internal(), index_getnext_tid(), index_insert(), index_rescan(), InitAuxiliaryProcess(), InputFunctionCall(), InsertPgAttributeTuple(), InsertPgClassTuple(), int2vectorrecv(), int4_to_char(), int4range_canonical(), InternalIpcMemoryCreate(), inv_read(), inv_truncate(), inv_write(), IsThereCollationInNamespace(), leftmostvalue_bit(), leftmostvalue_inet(), leftmostvalue_int4(), leftmostvalue_varbit(), LexizeExec(), make_const(), MakeConfigurationMapping(), moddatetime(), neqsel(), network_scan_last(), numeric_to_char(), numeric_to_number(), oidvectorrecv(), parsetext(), perform_default_encoding_conversion(), pg_backup_start_time(), pg_buffercache_pages(), pg_do_encoding_conversion(), pg_event_trigger_dropped_objects(), pg_get_serial_sequence(), pg_lock_status(), pg_stat_get_activity(), pg_stat_get_backend_idset(), pg_stat_get_wal_senders(), pgstatginindex(), printTypmod(), ProcSignalInit(), prs_setup_firstcall(), readRecoveryCommandFile(), ReceiveFunctionCall(), recordMultipleDependencies(), restriction_selectivity(), ri_AttributesEqual(), scalararraysel(), SetSecurityLabel(), shdepAddDependency(), shdepChangeDep(), shdepDropDependency(), ssl_client_serial(), textregexsubstr(), toast_fetch_datum_slice(), toast_save_datum(), transformArraySubscripts(), ts_lexize(), ttdummy(), TypeCreate(), TypeShellMake(), unaccent_dict(), and update_attstats().
#define Int64GetDatumFast | ( | X | ) | PointerGetDatum(&(X)) |
Definition at line 625 of file postgres.h.
Referenced by DefineSequence(), int8_avg(), interval_hash(), pg_stat_statements(), and timetz_hash().
#define Int8GetDatum | ( | X | ) | ((Datum) SET_1_BYTE(X)) |
Definition at line 359 of file postgres.h.
#define MultiXactIdGetDatum | ( | X | ) | ((Datum) SET_4_BYTES((X))) |
Definition at line 464 of file postgres.h.
Referenced by InsertPgClassTuple().
#define NameGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 531 of file postgres.h.
Referenced by AddEnumLabel(), AlterDatabase(), AlterDatabaseOwner(), build_dummy_tuple(), CollationCreate(), ConversionCreate(), create_proc_lang(), CreateConstraintEntry(), CreateOpFamily(), DefineOpClass(), DefineSequence(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), EnumValuesCreate(), find_language_template(), get_db_info(), insert_event_trigger_tuple(), InsertPgAttributeTuple(), InsertPgClassTuple(), InsertRule(), movedb(), nameiclike(), nameicnlike(), NamespaceCreate(), OperatorCreate(), OperatorShellMake(), ProcedureCreate(), RelationBuildTriggers(), set_timetravel(), TypeCreate(), and TypeShellMake().
#define ObjectIdGetDatum | ( | X | ) | ((Datum) SET_4_BYTES(X)) |
Definition at line 443 of file postgres.h.
Referenced by aclexplode(), aclitemout(), AddEnumLabel(), AddRoleMems(), AfterTriggerSetState(), AggregateCreate(), AlterConstraintNamespaces(), AlterDatabaseOwner(), AlterDomainAddConstraint(), AlterDomainDefault(), AlterDomainDropConstraint(), AlterDomainNotNull(), AlterDomainValidateConstraint(), AlterEnum(), AlterEventTriggerOwner_oid(), AlterExtensionNamespace(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner_oid(), AlterForeignServerOwner_oid(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterRelationNamespaceInternal(), AlterRole(), AlterSchemaOwner_internal(), AlterSchemaOwner_oid(), AlterSeqNamespaces(), AlterSetting(), AlterTSDictionary(), AlterTypeNamespaceInternal(), AlterTypeOwnerInternal(), AlterUserMapping(), ApplyExtensionUpdates(), ApplySetting(), array_to_json_internal(), assignOperTypes(), assignProcTypes(), ATAddForeignKeyConstraint(), ATExecAddColumn(), ATExecAddInherit(), ATExecAddOf(), ATExecAlterColumnType(), ATExecChangeOwner(), ATExecDropColumn(), ATExecDropConstraint(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecSetRelOptions(), ATExecSetTableSpace(), ATExecValidateConstraint(), AttrDefaultFetch(), btcostestimate(), build_coercion_expression(), build_regtype_array(), CacheInvalidateRelcacheByRelid(), CatalogCacheComputeTupleHashValue(), change_owner_fix_column_acls(), change_owner_recurse_to_sequences(), changeDependencyFor(), check_for_column_name_collision(), check_functional_grouping(), check_timezone(), check_TSCurrentConfig(), CheckConstraintFetch(), CheckIndexCompatible(), CheckMyDatabase(), CheckRelationOwnership(), checkSharedDependencies(), ChooseConstraintName(), cluster(), cluster_rel(), CollationCreate(), CollationGetCollid(), CollationIsVisible(), column_privilege_check(), compile_plperl_function(), compile_pltcl_function(), composite_to_json(), ComputeIndexAttrs(), ConstraintNameIsUsed(), ConstructTupleDescriptor(), ConversionCreate(), ConversionGetConid(), ConversionIsVisible(), CopyOneRowTo(), copyTemplateDependencies(), count_agg_clauses_walker(), create_proc_lang(), create_toast_table(), CreateCast(), CreateComments(), CreateConstraintEntry(), createdb(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateOpFamily(), CreateRole(), CreateSharedComments(), CreateTableSpace(), CreateTrigger(), CreateUserMapping(), currtid_for_view(), decompile_conbin(), DefineCollation(), DefineCompositeType(), DefineDomain(), DefineEnum(), DefineOpClass(), DefineQueryRewrite(), DefineRange(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DefineType(), DeleteAttributeTuples(), DeleteComments(), deleteDependencyRecordsFor(), deleteDependencyRecordsForClass(), deleteOneObject(), DeleteRelationTuple(), DeleteSecurityLabel(), DeleteSharedComments(), DeleteSharedSecurityLabel(), DeleteSystemAttributeTuples(), DelRoleMems(), deparseFuncExpr(), deparseOpExpr(), deparseScalarArrayOpExpr(), do_autovacuum(), do_compile(), drop_parent_dependency(), DropCastById(), DropConfigurationMapping(), dropDatabaseDependencies(), dropdb(), dropOperators(), DropProceduralLanguageById(), dropProcedures(), DropRole(), DropSetting(), EnableDisableRule(), EnableDisableTrigger(), enum_cmp_internal(), enum_endpoint(), enum_in(), enum_out(), enum_range_internal(), enum_recv(), enum_send(), EnumValuesCreate(), EnumValuesDelete(), equality_ops_are_compatible(), errdatatype(), eval_const_expressions_mutator(), examine_attribute(), examine_parameter_list(), examine_simple_variable(), examine_variable(), exec_stmt_getdiag(), ExecGrant_Attribute(), ExecGrant_Database(), ExecGrant_Fdw(), ExecGrant_ForeignServer(), ExecGrant_Function(), ExecGrant_Language(), ExecGrant_Largeobject(), ExecGrant_Namespace(), ExecGrant_Relation(), ExecGrant_Tablespace(), ExecGrant_Type(), ExecHashBuildSkewHash(), ExecInitAgg(), expand_all_col_privileges(), extension_config_remove(), fetch_agg_sort_op(), fetch_fp_info(), find_coercion_pathway(), find_composite_type_dependencies(), find_expr_references_walker(), find_inheritance_children(), find_typed_table_dependencies(), find_typmod_coercion_function(), FindDefaultConversion(), findDependentObjects(), fixup_whole_row_references(), flatten_reloptions(), flatten_set_variable_args(), fmgr_c_validator(), fmgr_info_cxt_security(), fmgr_info_other_lang(), fmgr_internal_validator(), fmgr_security_definer(), fmgr_sql_validator(), ForceTransactionIdLimitUpdate(), format_operator_internal(), format_procedure_internal(), format_type_internal(), func_get_detail(), func_strict(), func_volatile(), FunctionIsVisible(), generate_collation_name(), generate_function_name(), generate_operator_name(), generate_relation_name(), generateClonedIndexStmt(), get_am_name(), get_array_type(), get_attavgwidth(), get_attname(), get_attribute_options(), get_attstatsslot(), get_atttype(), get_atttypetypmodcoll(), get_atttypmod(), get_base_element_type(), get_cast_oid(), get_catalog_object_by_oid(), get_collation(), get_collation_name(), get_collation_oid(), get_commutator(), get_compatible_hash_operators(), get_constraint_index(), get_constraint_name(), get_conversion_oid(), get_database_name(), get_db_info(), get_default_acl_internal(), get_domain_constraint_oid(), get_element_type(), get_extension_name(), get_extension_schema(), get_func_cost(), get_func_leakproof(), get_func_name(), get_func_namespace(), get_func_nargs(), get_func_result_name(), get_func_retset(), get_func_rettype(), get_func_rows(), get_func_signature(), get_index_constraint(), get_mergejoin_opfamilies(), get_namespace_name(), get_negator(), get_object_namespace(), get_op_btree_interpretation(), get_op_hash_functions(), get_op_opfamily_properties(), get_op_opfamily_sortfamily(), get_op_opfamily_strategy(), get_opclass(), get_opclass_family(), get_opclass_input_type(), get_opclass_name(), get_opcode(), get_oper_expr(), get_opfamily_member(), get_opfamily_proc(), get_opname(), get_oprjoin(), get_oprrest(), get_ordering_op_for_equality_op(), get_ordering_op_properties(), get_pkey_attnames(), get_range_subtype(), get_rel_name(), get_rel_namespace(), get_rel_relkind(), get_rel_tablespace(), get_rel_type_id(), get_relation_constraint_oid(), get_relname_relid(), get_rels_with_domain(), get_rewrite_oid(), get_rte_attribute_is_dropped(), get_rte_attribute_type(), get_tablespace(), get_tablespace_name(), get_trigger_oid(), get_ts_config_oid(), get_ts_dict_oid(), get_ts_parser_func(), get_ts_parser_oid(), get_ts_template_func(), get_ts_template_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_typtype(), getBaseTypeAndTypmod(), GetComment(), GetDatabaseTupleByOid(), GetDefaultOpClass(), GetDomainConstraints(), getExtensionOfObject(), GetFdwRoutineByRelId(), GetForeignColumnOptions(), GetForeignDataWrapper(), GetForeignServer(), GetForeignTable(), GetIndexOpClass(), GetNewOidWithIndex(), getObjectDescription(), getObjectIdentity(), getOpFamilyDescription(), getOpFamilyIdentity(), getOwnedSequences(), getProcedureTypeDescription(), getRelationDescription(), getRelationIdentity(), getRelationsInNamespace(), getRelationTypeDescription(), GetSecurityLabel(), GetSharedSecurityLabel(), GetTSConfigTuple(), getTypeBinaryInputInfo(), getTypeBinaryOutputInfo(), getTypeInputInfo(), getTypeOutputInfo(), GetUserMapping(), GetUserNameFromId(), gistindex_keytest(), has_any_column_privilege_id(), has_any_column_privilege_id_id(), has_any_column_privilege_name_id(), has_createrole_privilege(), has_database_privilege_id(), has_database_privilege_id_id(), has_database_privilege_name_id(), has_function_privilege_id(), has_function_privilege_id_id(), has_function_privilege_name_id(), has_language_privilege_id(), has_language_privilege_id_id(), has_language_privilege_name_id(), has_rolcatupdate(), has_rolinherit(), has_rolreplication(), has_schema_privilege_id(), has_schema_privilege_id_id(), has_schema_privilege_name_id(), has_subclass(), has_table_privilege_id(), has_table_privilege_id_id(), has_table_privilege_name_id(), has_type_privilege_id(), has_type_privilege_id_id(), has_type_privilege_name_id(), hash_ok_operator(), have_createdb_privilege(), heap_create_with_catalog(), heap_drop_with_catalog(), heap_getsysattr(), index_build(), index_check_primary_key(), index_constraint_create(), index_drop(), index_set_state_flags(), index_update_stats(), IndexGetRelation(), IndexSupportsBackwardScan(), init_sql_fcache(), initialize_peragg(), inline_set_returning_function(), InputFunctionCall(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertPgAttributeTuple(), InsertPgClassTuple(), InsertRule(), int2vectorrecv(), internal_get_result_type(), inv_getsize(), inv_read(), inv_truncate(), inv_write(), is_admin_of_role(), IsBinaryCoercible(), IsDefinedRewriteRule(), isObjectPinned(), isSharedObjectPinned(), IsThereCollationInNamespace(), IsThereFunctionInNamespace(), IsThereOpClassInNamespace(), IsThereOpFamilyInNamespace(), join_selectivity(), json_agg_transfn(), LargeObjectCreate(), LargeObjectDrop(), LargeObjectExists(), lastval(), left_oper(), leftmostvalue_bit(), leftmostvalue_inet(), leftmostvalue_oid(), leftmostvalue_varbit(), lo_manage(), load_enum_cache_data(), load_rangetype_info(), LockTableRecurse(), lookup_collation_cache(), lookup_ts_config_cache(), lookup_ts_dictionary_cache(), lookup_ts_parser_cache(), lookup_type_cache(), LookupAggNameTypeNames(), LookupOpclassInfo(), LookupTypeName(), make_const(), make_new_heap(), makeArrayTypeName(), makeConfigurationDependencies(), MakeConfigurationMapping(), map_sql_table_to_xmlschema(), map_sql_type_to_xml_name(), mark_index_clustered(), MergeConstraintsIntoExisting(), MergeWithExistingConstraint(), moddatetime(), movedb(), myLargeObjectExists(), NamespaceCreate(), neqjoinsel(), neqsel(), numeric_to_number(), objectsInSchemaToOids(), oidvectorrecv(), op_hashjoinable(), op_in_opfamily(), op_input_types(), op_mergejoinable(), OpClassCacheLookup(), OpclassIsVisible(), OpclassnameGetOpcid(), oper(), OperatorCreate(), OperatorGet(), OperatorIsVisible(), OperatorShellMake(), OperatorUpd(), OpernameGetOprid(), OpFamilyCacheLookup(), OpfamilyIsVisible(), OpfamilynameGetOpfid(), pg_attribute_aclcheck_all(), pg_attribute_aclmask(), pg_backup_start_time(), pg_buffercache_pages(), pg_class_aclmask(), pg_class_ownercheck(), pg_collation_is_visible(), pg_collation_ownercheck(), pg_conversion_is_visible(), pg_conversion_ownercheck(), pg_database_aclmask(), pg_database_ownercheck(), pg_do_encoding_conversion(), pg_event_trigger_dropped_objects(), pg_event_trigger_ownercheck(), pg_extension_config_dump(), pg_extension_ownercheck(), pg_foreign_data_wrapper_aclmask(), pg_foreign_data_wrapper_ownercheck(), pg_foreign_server_aclmask(), pg_foreign_server_ownercheck(), pg_function_is_visible(), pg_get_constraintdef_worker(), pg_get_function_arguments(), pg_get_function_identity_arguments(), pg_get_function_result(), pg_get_functiondef(), pg_get_indexdef_worker(), pg_get_ruledef_worker(), pg_get_serial_sequence(), pg_get_triggerdef_worker(), pg_get_userbyid(), pg_get_viewdef_worker(), pg_language_aclmask(), pg_language_ownercheck(), pg_largeobject_aclmask_snapshot(), pg_largeobject_ownercheck(), pg_lock_status(), pg_namespace_aclmask(), pg_namespace_ownercheck(), pg_newlocale_from_collation(), pg_opclass_is_visible(), pg_opclass_ownercheck(), pg_oper_ownercheck(), pg_operator_is_visible(), pg_opfamily_is_visible(), pg_opfamily_ownercheck(), pg_prepared_xact(), pg_proc_aclmask(), pg_proc_ownercheck(), pg_relation_filenode(), pg_relation_filepath(), pg_stat_get_activity(), pg_stat_statements(), pg_table_is_visible(), pg_tablespace_aclmask(), pg_tablespace_databases(), pg_tablespace_ownercheck(), pg_ts_config_is_visible(), pg_ts_config_ownercheck(), pg_ts_dict_is_visible(), pg_ts_dict_ownercheck(), pg_ts_parser_is_visible(), pg_ts_template_is_visible(), pg_type_aclmask(), pg_type_is_visible(), pg_type_ownercheck(), plainto_tsquery(), plainto_tsquery_byid(), plperl_trigger_build_args(), plperl_validator(), plpgsql_build_datatype(), plpgsql_compile(), plpgsql_exec_trigger(), plpgsql_parse_cwordtype(), plpgsql_validator(), plpython_validator(), pltcl_build_tuple_argument(), pltcl_set_tuple_values(), pltcl_trigger_handler(), PLy_input_tuple_funcs(), PLy_output_tuple_funcs(), PLy_procedure_argument_valid(), PLy_procedure_create(), PLy_procedure_get(), PLy_spi_prepare(), PLy_trigger_build_args(), PLyString_ToComposite(), ProcedureCreate(), RangeCreate(), RangeDelete(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForRenameAttribute(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), readRecoveryCommandFile(), ReceiveFunctionCall(), recomputeNamespacePath(), record_plan_function_dependency(), recordMultipleDependencies(), regclassout(), regconfigout(), regdictionaryout(), regoperout(), regprocout(), regtypeout(), reindex_index(), RelationBuildRuleLock(), RelationBuildTriggers(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationGetExclusionInfo(), RelationGetIndexList(), relationHasPrimaryKey(), RelationInitIndexAccessInfo(), RelationIsVisible(), RelationReloadIndexInfo(), RelationRemoveInheritance(), RelationSetNewRelfilenode(), RemoveAmOpEntryById(), RemoveAmProcEntryById(), RemoveAttrDefault(), RemoveAttrDefaultById(), RemoveAttributeById(), RemoveCollationById(), RemoveConstraintById(), RemoveConversionById(), RemoveDefaultACLById(), RemoveEventTriggerById(), RemoveExtensionById(), RemoveForeignDataWrapperById(), RemoveForeignServerById(), RemoveFunctionById(), RemoveObjects(), RemoveOpClassById(), RemoveOperatorById(), RemoveOpFamilyById(), RemoveRewriteRuleById(), RemoveRoleFromObjectACL(), RemoveSchemaById(), RemoveStatistics(), RemoveTriggerById(), RemoveTSConfigurationById(), RemoveTSDictionaryById(), RemoveTSParserById(), RemoveTSTemplateById(), RemoveTypeById(), RemoveUserMapping(), RemoveUserMappingById(), rename_constraint_internal(), RenameConstraint(), RenameConstraintById(), RenameDatabase(), RenameRelationInternal(), RenameRewriteRule(), renametrig(), RenameType(), RenameTypeInternal(), restriction_selectivity(), ri_add_cast_to(), ri_GenerateQual(), ri_GenerateQualCollation(), ri_LoadConstraintInfo(), right_oper(), roles_has_privs_of(), roles_is_member_of(), scalararraysel(), ScanPgRelation(), scanRTEForColumn(), SearchSysCacheAttName(), 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_relation_setattr_extra(), sepgsql_schema_post_create(), sequenceIsOwned(), SetDefaultACL(), SetFunctionArgType(), SetFunctionReturnType(), SetRelationHasSubclass(), SetRelationNumChecks(), SetRelationRuleStatus(), SetSecurityLabel(), SetSharedSecurityLabel(), shdepAddDependency(), shdepChangeDep(), shdepDropDependency(), shdepDropOwned(), shdepLockAndCheckObject(), shdepReassignOwned(), simplify_function(), SPI_gettype(), ssl_client_serial(), StoreAttrDefault(), StoreCatalogInheritance1(), storeOperators(), storeProcedures(), superuser_arg(), swap_relation_files(), table_recheck_autovac(), table_to_xml_internal(), to_json(), to_tsquery(), to_tsquery_byid(), to_tsvector(), toast_delete_datum(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_save_datum(), toastrel_valueid_exists(), transformArrayType(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformGenericOptions(), triggered_change_notification(), try_relation_open(), TryReuseForeignKey(), ts_headline(), ts_headline_opt(), tsa_headline_byname(), tsa_lexize_bycurrent(), tsa_lexize_byname(), tsa_parse_current(), tsa_plainto_tsquery_name(), tsa_set_curcfg(), tsa_set_curdict(), tsa_set_curprs(), tsa_to_tsquery_name(), tsa_to_tsvector_name(), tsa_token_type_current(), TSConfigIsVisible(), TSDictionaryIsVisible(), TSParserIsVisible(), TSTemplateIsVisible(), TupleDescInitEntry(), TypeCreate(), typeidType(), typeidTypeRelid(), typeInheritsFrom(), typeIsOfTypedTable(), TypeIsVisible(), TypenameGetTypid(), TypeShellMake(), update_attstats(), UpdateIndexRelation(), vac_update_datfrozenxid(), vac_update_relstats(), and verify_dictoptions().
#define PointerGetDatum | ( | X | ) | ((Datum) (X)) |
Definition at line 492 of file postgres.h.
Referenced by _int_different(), _ltree_compress(), _ltree_picksplit(), accumArrayResult(), AggregateCreate(), AlterDatabaseOwner(), AlterForeignDataWrapper(), AlterForeignServer(), AlterFunction(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterRole(), AlterRoleSet(), AlterSchemaOwner_internal(), AlterSetting(), AlterTSDictionary(), AlterUserMapping(), array_fill_internal(), array_get_slice(), array_iterate(), array_iterator(), array_map(), array_ref(), array_replace_internal(), array_set(), array_set_slice(), ATExecAlterColumnGenericOptions(), ATExecChangeOwner(), ATExecGenericOptions(), autoinc(), btbulkdelete(), build_function_result_tupdesc_d(), build_function_result_tupdesc_t(), build_regexp_matches_result(), build_regexp_split_result(), build_regtype_array(), bytea_overlay(), calc_arraycontsel(), callConsistentFn(), change_owner_fix_column_acls(), check_for_column_name_collision(), check_foreign_key(), check_primary_key(), check_role(), check_session_authorization(), CheckIndexCompatible(), CollationCreate(), CollationGetCollid(), collectMatchBitmap(), compileTheLexeme(), compileTheSubstitute(), composite_to_json(), compute_array_stats(), compute_minimal_stats(), compute_range_stats(), compute_scalar_stats(), compute_tsvector_stats(), construct_md_array(), ConversionCreate(), ConversionGetConid(), convert_prep_stmt_params(), cost_index(), create_empty_extension(), create_proc_lang(), CreateConstraintEntry(), createdb(), CreateExtension(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateFunction(), CreateProceduralLanguage(), CreateSchemaCommand(), CreateTrigger(), CreateUserMapping(), currtid_for_view(), date_mi_interval(), date_pl_interval(), datumCopy(), debugtup(), DefineIndex(), DefineOpClass(), DefineTSDictionary(), do_text_output_multiline(), doPickSplit(), DropRole(), each_object_field_end(), elements_array_element_end(), EnableDisableRule(), end_MultiFuncCall(), evaluate_expr(), examine_attribute(), examine_parameter_list(), exec_assign_c_string(), exec_assign_value(), exec_stmt_return(), ExecEvalArray(), ExecEvalArrayCoerceExpr(), ExecEvalArrayRef(), ExecEvalWholeRowFast(), ExecEvalWholeRowSlow(), ExecEvalXml(), ExecFetchSlotTupleDatum(), ExecGrant_Attribute(), ExecGrant_Database(), ExecGrant_Fdw(), ExecGrant_ForeignServer(), ExecGrant_Function(), ExecGrant_Language(), ExecGrant_Largeobject(), ExecGrant_Namespace(), ExecGrant_Relation(), ExecGrant_Tablespace(), ExecGrant_Type(), ExecIndexBuildScanKeys(), ExecIndexEvalRuntimeKeys(), ExecInitCteScan(), ExecInitRecursiveUnion(), ExecInitSubPlan(), ExecMakeFunctionResult(), ExecPrepareTuplestoreResult(), ExecScanSubPlan(), ExecSetParamPlan(), ExecuteDoStmt(), extension_config_remove(), filter_list_to_array(), Float4GetDatum(), Float8GetDatum(), fmgr(), fmgr_oldstyle(), fmgr_sql(), formTextDatum(), funny_dup17(), g_cube_decompress(), g_cube_picksplit(), g_int_compress(), g_int_consistent(), g_int_decompress(), g_int_picksplit(), g_intbig_compress(), g_intbig_picksplit(), gbt_bitcmp(), gbt_biteq(), gbt_bitge(), gbt_bitgt(), gbt_bitle(), gbt_bitlt(), gbt_bpchar_consistent(), gbt_byteacmp(), gbt_byteaeq(), gbt_byteage(), gbt_byteagt(), gbt_byteale(), gbt_bytealt(), gbt_inet_compress(), gbt_intv_compress(), gbt_intv_decompress(), gbt_macadeq(), gbt_macadge(), gbt_macadgt(), gbt_macadle(), gbt_macadlt(), gbt_num_bin_union(), gbt_num_compress(), gbt_num_picksplit(), gbt_numeric_cmp(), gbt_numeric_eq(), gbt_numeric_ge(), gbt_numeric_gt(), gbt_numeric_le(), gbt_numeric_lt(), gbt_numeric_penalty(), gbt_textcmp(), gbt_texteq(), gbt_textge(), gbt_textgt(), gbt_textle(), gbt_textlt(), gbt_timetz_compress(), gbt_tstz_compress(), gbt_var_bin_union(), gbt_var_compress(), gbt_var_decompress(), gbt_var_penalty(), gbt_var_picksplit(), gbt_var_union(), generate_series_timestamp(), generate_series_timestamptz(), Generic_Text_IC_like(), genericPickSplit(), get_available_versions_for_extension(), get_cached_rowtype(), get_collation_oid(), get_conversion_oid(), get_func_input_arg_names(), get_relname_relid(), get_rewrite_oid(), get_text_array_contents(), get_ts_config_oid(), get_ts_dict_oid(), get_ts_parser_oid(), get_ts_template_oid(), GetIndexOpClass(), ghstore_compress(), ghstore_picksplit(), gin_extract_hstore(), gin_extract_hstore_query(), gin_extract_tsquery(), gin_extract_tsvector(), gincost_pattern(), ginExtractEntries(), ginNewScanKey(), gist_box_leaf_consistent(), gist_box_picksplit(), gist_circle_compress(), gist_point_consistent(), gist_poly_compress(), gistcentryinit(), gistdentryinit(), gistindex_keytest(), gistKeyIsEQ(), gistMakeUnionItVec(), gistMakeUnionKey(), gistpenalty(), gistUserPicksplit(), gseg_picksplit(), gtrgm_compress(), gtrgm_decompress(), gtrgm_picksplit(), gtsvector_compress(), gtsvector_decompress(), gtsvector_picksplit(), heap_create_with_catalog(), heap_getsysattr(), heap_page_items(), hlparsetext(), hstore_akeys(), hstore_avals(), hstore_each(), hstore_skeys(), hstore_slice_to_array(), hstore_svals(), hstore_to_array_internal(), index_beginscan_internal(), index_build(), index_bulk_delete(), index_can_return(), index_endscan(), index_form_tuple(), index_getbitmap(), index_getnext_tid(), index_insert(), index_markpos(), index_rescan(), index_restrpos(), index_vacuum_cleanup(), init_MultiFuncCall(), init_ts_config_cache(), InitializeSessionUserId(), insert_username(), InsertExtensionTuple(), InsertOneNull(), InsertRule(), int2vectorrecv(), Int64GetDatum(), InternalIpcMemoryCreate(), inv_truncate(), inv_write(), IsDefinedRewriteRule(), IsThereFunctionInNamespace(), join_selectivity(), json_agg_transfn(), leftmostvalue_numeric(), leftmostvalue_text(), LexizeExec(), lo_manage(), lookup_ts_dictionary_cache(), lookup_ts_parser_cache(), LookupTypeName(), lt_q_regex(), ltree_addtext(), ltree_compress(), ltree_consistent(), ltree_decompress(), ltree_picksplit(), ltree_textadd(), make_greater_string(), makeMdArrayResult(), makeRangeConstructors(), matchPartialInPendingList(), md5_crypt_verify(), MJExamineQuals(), moddatetime(), movedb(), NamespaceCreate(), neqjoinsel(), neqsel(), oidvectorrecv(), OpClassCacheLookup(), OpclassnameGetOpcid(), OperatorGet(), OpFamilyCacheLookup(), OpfamilynameGetOpfid(), optionListToArray(), parsetext(), pg_extension_config_dump(), pg_get_viewdef_worker(), pgrowlocks(), PGSharedMemoryCreate(), plainto_tsquery(), plperl_array_to_datum(), plperl_call_handler(), plperl_trigger_handler(), plpgsql_call_handler(), plpgsql_exec_function(), plpgsql_exec_trigger(), plpython_call_handler(), pltcl_handler(), PLy_cursor_plan(), PLy_spi_execute_plan(), PLy_spi_prepare(), PLyObject_ToBytea(), PLySequence_ToArray(), prepare_sql_fn_parse_info(), PrepareSortSupportFromOrderingOp(), printtup(), printtup_20(), printtup_internal_20(), ProcedureCreate(), proclock_hash(), ProcLockHashCode(), prs_setup_firstcall(), quote_ident_cstr(), range_gist_double_sorting_split(), range_send(), range_serialize(), ReadArrayBinary(), ReadArrayStr(), readDatum(), readtup_datum(), ReceiveFunctionCall(), record_out(), record_send(), regexp_matches(), RenameRewriteRule(), renametrig(), restriction_selectivity(), RI_FKey_cascade_del(), RI_FKey_cascade_upd(), RI_FKey_check(), RI_FKey_setdefault_del(), RI_FKey_setdefault_upd(), RI_FKey_setnull_del(), RI_FKey_setnull_upd(), ri_restrict_del(), ri_restrict_upd(), rtree_internal_consistent(), scalararraysel(), sepgsql_fmgr_hook(), SetDefaultACL(), SharedInvalBackendInit(), show_trgm(), ShowAllGUCConfig(), simplify_function(), spg_quad_inner_consistent(), spg_range_quad_picksplit(), spg_text_inner_consistent(), spg_text_leaf_consistent(), spgdoinsert(), spgGetCache(), spgLeafTest(), spgWalk(), SPI_getvalue(), split_text(), string_to_bytea_const(), suppress_redundant_updates_trigger(), text2ltree(), text_isequal(), text_overlay(), text_to_array_internal(), textoverlay_no_len(), textregexsubstr(), thesaurus_lexize(), timestamp_izone(), timestamp_mi_interval(), timestamptz_izone(), timestamptz_mi_interval(), timetravel(), timetz_izone(), to_json(), to_tsquery(), to_tsvector(), toast_compress_datum(), toast_delete(), toast_flatten_tuple(), toast_flatten_tuple_attribute(), toast_insert_or_update(), toast_save_datum(), transformGenericOptions(), transformRelOptions(), triggered_change_notification(), ts_headline_byid_opt(), ts_lexize(), TSConfigIsVisible(), TSDictionaryIsVisible(), TSParserIsVisible(), tsqueryin(), TSTemplateIsVisible(), tstoreReceiveSlot_detoast(), tsvector_update_trigger(), ttdummy(), TypeCreate(), TypeIsVisible(), TypenameGetTypid(), typenameTypeMod(), unaccent_dict(), update_attstats(), UpdateIndexRelation(), validate_index_callback(), verify_dictoptions(), and xmlconcat().
Definition at line 314 of file postgres.h.
Definition at line 315 of file postgres.h.
Definition at line 316 of file postgres.h.
Referenced by Float4GetDatum().
#define SET_VARSIZE | ( | PTR, | ||
len | ||||
) | SET_VARSIZE_4B(PTR, len) |
Definition at line 260 of file postgres.h.
Referenced by _ltree_compress(), _ltree_picksplit(), _ltree_union(), aclnewowner(), aclupdate(), allocacl(), array_cat(), array_get_slice(), array_in(), array_map(), array_recv(), array_replace_internal(), array_set(), array_set_slice(), binary_decode(), binary_encode(), bit(), bit_and(), bit_catenate(), bit_in(), bit_or(), bit_recv(), bitfromint4(), bitfromint8(), bitnot(), bitsetbit(), bitshiftleft(), bitshiftright(), bitsubstring(), bitxor(), box_poly(), bpchar(), bpchar_input(), bqarr_in(), buf_finalize(), buildint2vector(), buildoidvector(), bytea_catenate(), bytea_string_agg_finalfn(), byteain(), bytearecv(), byteatrim(), char_bpchar(), char_text(), chr(), circle_poly(), concat_text(), construct_empty_array(), construct_md_array(), copytext(), create_array_envelope(), cstring_to_text_with_len(), cube_a_f8(), cube_a_f8_f8(), cube_c_f8(), cube_c_f8_f8(), cube_enlarge(), cube_f8(), cube_f8_f8(), cube_inter(), cube_subset(), cube_union_v0(), decrypt_internal(), encrypt_internal(), ExecEvalArray(), expandColorTrigrams(), fillRelOptions(), formTextDatum(), g_intbig_compress(), g_intbig_picksplit(), g_intbig_union(), gbt_bit_xfrm(), gbt_var_key_copy(), gbt_var_node_truncate(), generate_trgm(), generate_wildcard_trgm(), generateHeadline(), get_raw_page_internal(), ghstore_compress(), ghstore_picksplit(), ghstore_union(), gtrgm_compress(), gtrgm_picksplit(), gtrgm_union(), gtsvector_compress(), gtsvector_picksplit(), gtsvector_union(), heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), hstore_concat(), hstore_delete(), hstore_delete_array(), hstore_delete_hstore(), hstorePairs(), inner_subltree(), int2vectorin(), inv_truncate(), inv_write(), json_recv(), lca_inner(), loread(), lpad(), lquery_in(), ltree2text(), ltree_compress(), ltree_concat(), ltree_in(), ltree_picksplit(), ltree_union(), make_greater_string(), make_result(), make_tsvector(), makeitem(), new_intArrayType(), oidvectorin(), optionListToArray(), parse_tsquery(), path_add(), path_in(), path_poly(), path_recv(), pg_armor(), pg_convert(), pg_dearmor(), pg_decrypt(), pg_decrypt_iv(), pg_digest(), pg_encrypt(), pg_encrypt_iv(), pg_hmac(), pg_random_bytes(), pgp_key_id_w(), plainto_tsquery_byid(), PLyObject_ToBytea(), poly_in(), poly_path(), poly_recv(), pq_endtypsend(), QTN2QT(), queryin(), quote_literal(), range_serialize(), read_binary_file(), repeat(), resize_intArrayType(), rpad(), show_trgm(), similar_escape(), spg_text_inner_consistent(), spg_text_leaf_consistent(), string_to_bytea_const(), text_catenate(), text_reverse(), text_substring(), to_tsquery_byid(), to_tsvector_byid(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_save_datum(), transformRelOptions(), translate(), tsa_rewrite_accum(), tsa_rewrite_finish(), tsquery_rewrite(), tsquery_rewrite_query(), tsqueryrecv(), tsquerytree(), tsvector_concat(), tsvector_strip(), tsvector_update_trigger(), tsvectorin(), tsvectorrecv(), txid_current_snapshot(), txid_snapshot_recv(), varbit(), varbit_in(), varbit_recv(), and xml_recv().
#define SET_VARSIZE_1B | ( | PTR, | ||
len | ||||
) | (((varattrib_1b *) (PTR))->va_header = (((uint8) (len)) << 1) | 0x01) |
Definition at line 203 of file postgres.h.
#define SET_VARSIZE_1B_E | ( | PTR, | ||
len | ||||
) |
(((varattrib_1b_e *) (PTR))->va_header = 0x01, \ ((varattrib_1b_e *) (PTR))->va_len_1be = (len))
Definition at line 205 of file postgres.h.
#define SET_VARSIZE_4B | ( | PTR, | ||
len | ||||
) | (((varattrib_4b *) (PTR))->va_4byte.va_header = (((uint32) (len)) << 2)) |
Definition at line 199 of file postgres.h.
#define SET_VARSIZE_4B_C | ( | PTR, | ||
len | ||||
) | (((varattrib_4b *) (PTR))->va_4byte.va_header = (((uint32) (len)) << 2) | 0x02) |
Definition at line 201 of file postgres.h.
#define SET_VARSIZE_COMPRESSED | ( | PTR, | ||
len | ||||
) | SET_VARSIZE_4B_C(PTR, len) |
Definition at line 262 of file postgres.h.
Referenced by pglz_compress(), toast_fetch_datum(), and toast_fetch_datum_slice().
#define SET_VARSIZE_EXTERNAL | ( | PTR, | ||
len | ||||
) | SET_VARSIZE_1B_E(PTR, len) |
Definition at line 263 of file postgres.h.
Referenced by toast_save_datum().
#define SET_VARSIZE_SHORT | ( | PTR, | ||
len | ||||
) | SET_VARSIZE_1B(PTR, len) |
Definition at line 261 of file postgres.h.
Referenced by datum_write(), formTextDatum(), and heap_fill_tuple().
#define SIZEOF_DATUM SIZEOF_VOID_P |
Definition at line 304 of file postgres.h.
#define TransactionIdGetDatum | ( | X | ) | ((Datum) SET_4_BYTES((X))) |
Definition at line 457 of file postgres.h.
Referenced by createdb(), heap_getsysattr(), InsertPgClassTuple(), page_header(), pg_lock_status(), and pg_prepared_xact().
#define UInt16GetDatum | ( | X | ) | ((Datum) SET_2_BYTES(X)) |
Definition at line 401 of file postgres.h.
Referenced by callConsistentFn(), collectMatchBitmap(), gincost_pattern(), GinFormTuple(), ginNewScanKey(), heap_page_items(), matchPartialInPendingList(), page_header(), pg_lock_status(), and ProcedureCreate().
#define UInt32GetDatum | ( | X | ) | ((Datum) SET_4_BYTES(X)) |
Definition at line 429 of file postgres.h.
Referenced by _hash_form_tuple(), callConsistentFn(), exec_stmt_getdiag(), hash_any(), hash_uint32(), heap_page_items(), pg_lock_status(), pg_xlogfile_name_offset(), and pgstatginindex().
#define UInt8GetDatum | ( | X | ) | ((Datum) SET_1_BYTE(X)) |
Definition at line 373 of file postgres.h.
Referenced by heap_page_items(), spg_text_choose(), and spg_text_picksplit().
#define VARATT_CAN_MAKE_SHORT | ( | PTR | ) |
(VARATT_IS_4B_U(PTR) && \ (VARSIZE(PTR) - VARHDRSZ + VARHDRSZ_SHORT) <= VARATT_SHORT_MAX)
Definition at line 212 of file postgres.h.
Referenced by datum_compute_size(), datum_write(), heap_compute_data_size(), and heap_fill_tuple().
#define VARATT_CONVERTED_SHORT_SIZE | ( | PTR | ) | (VARSIZE(PTR) - VARHDRSZ + VARHDRSZ_SHORT) |
Definition at line 215 of file postgres.h.
Referenced by datum_compute_size(), datum_write(), heap_compute_data_size(), and heap_fill_tuple().
#define VARATT_IS_1B | ( | PTR | ) | ((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x01) |
Definition at line 184 of file postgres.h.
#define VARATT_IS_1B_E | ( | PTR | ) | ((((varattrib_1b *) (PTR))->va_header) == 0x01) |
Definition at line 186 of file postgres.h.
#define VARATT_IS_4B | ( | PTR | ) | ((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x00) |
Definition at line 178 of file postgres.h.
#define VARATT_IS_4B_C | ( | PTR | ) | ((((varattrib_1b *) (PTR))->va_header & 0x03) == 0x02) |
Definition at line 182 of file postgres.h.
#define VARATT_IS_4B_U | ( | PTR | ) | ((((varattrib_1b *) (PTR))->va_header & 0x03) == 0x00) |
Definition at line 180 of file postgres.h.
#define VARATT_IS_COMPRESSED | ( | PTR | ) | VARATT_IS_4B_C(PTR) |
Definition at line 255 of file postgres.h.
Referenced by heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), mcelem_tsquery_selec(), pg_detoast_datum_packed(), text_substring(), toast_compress_datum(), toast_flatten_tuple_attribute(), toast_insert_or_update(), toast_raw_datum_size(), and toast_save_datum().
#define VARATT_IS_EXTENDED | ( | PTR | ) | (!VARATT_IS_4B_U(PTR)) |
Definition at line 258 of file postgres.h.
Referenced by getbytealen(), heap_form_minimal_tuple(), heap_form_tuple(), index_form_tuple(), inv_getsize(), inv_read(), inv_truncate(), inv_write(), pg_detoast_datum(), pg_detoast_datum_copy(), toast_fetch_datum(), and toast_fetch_datum_slice().
#define VARATT_IS_EXTERNAL | ( | PTR | ) | VARATT_IS_1B_E(PTR) |
Definition at line 256 of file postgres.h.
Referenced by datum_write(), heap_fill_tuple(), heap_tuple_fetch_attr(), heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), index_form_tuple(), mcelem_tsquery_selec(), pg_detoast_datum_packed(), text_substring(), toast_compress_datum(), toast_datum_size(), toast_delete(), toast_delete_datum(), toast_fetch_datum_slice(), toast_flatten_tuple(), toast_flatten_tuple_attribute(), toast_insert_or_update(), toast_raw_datum_size(), toast_save_datum(), and tstoreReceiveSlot_detoast().
#define VARATT_IS_SHORT | ( | PTR | ) | VARATT_IS_1B(PTR) |
Definition at line 257 of file postgres.h.
Referenced by datum_write(), heap_fill_tuple(), heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), toast_datum_size(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_raw_datum_size(), and toast_save_datum().
#define VARATT_NOT_PAD_BYTE | ( | PTR | ) | (*((uint8 *) (PTR)) != 0) |
Definition at line 188 of file postgres.h.
#define VARATT_SHORT_MAX 0x7F |
Definition at line 211 of file postgres.h.
Referenced by formTextDatum().
#define VARDATA | ( | PTR | ) | VARDATA_4B(PTR) |
Definition at line 246 of file postgres.h.
Referenced by add_block_entropy(), array_send(), binary_decode(), binary_encode(), bpchar(), bpchar_input(), bytea_catenate(), bytea_string_agg_finalfn(), byteain(), bytearecv(), byteaSetBit(), byteaSetByte(), byteatrim(), char_bpchar(), char_text(), chr(), concat_text(), convert_bytea_to_scalar(), convert_charset(), CopyOneRowTo(), copytext(), create_mbuf_from_vardata(), cstring_to_text_with_len(), datum_write(), decrypt_internal(), deserialize_deflist(), encode_to_ascii(), encrypt_internal(), find_provider(), fsm_page_contents(), gbt_bit_xfrm(), gbt_bytea_pf_match(), gbt_var_key_copy(), gbt_var_node_cp_len(), gbt_var_node_truncate(), gbt_var_penalty(), Generic_Text_IC_like(), get_raw_page_internal(), ghstore_consistent(), gin_extract_hstore_query(), gin_extract_query_trgm(), gin_extract_value_trgm(), gtrgm_compress(), gtrgm_consistent(), gtrgm_distance(), heap_fill_tuple(), heap_page_items(), heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), hstore_hash(), hstore_slice_to_array(), hstoreArrayToPairs(), init_work(), inv_read(), inv_truncate(), inv_write(), json_recv(), length_in_encoding(), like_fixed_prefix(), loread(), lowrite(), lpad(), ltree2text(), make_greater_string(), makeitem(), makeJsonLexContext(), numeric_to_number(), optionListToArray(), page_header(), parseRelOptions(), pg_armor(), pg_convert(), pg_dearmor(), pg_decrypt(), pg_decrypt_iv(), pg_digest(), pg_encrypt(), pg_encrypt_iv(), pg_file_write(), pg_get_triggerdef_worker(), pg_hmac(), pg_random_bytes(), pgp_key_id_w(), pgxml_xpath(), PLyBytes_FromBytea(), PLyObject_ToBytea(), printtup(), printtup_internal_20(), prs_setup_firstcall(), quote_literal(), range_send(), read_binary_file(), read_text_file(), record_send(), RelationBuildTriggers(), repeat(), rpad(), SendFunctionResult(), show_trgm(), similar_escape(), similarity(), sort(), spg_text_inner_consistent(), spg_text_leaf_consistent(), string_to_bytea_const(), text_catenate(), text_char(), text_reverse(), text_substring(), to_tsvector_byid(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_save_datum(), transformRelOptions(), translate(), ts_headline_byid_opt(), ts_lexize(), ts_stat_sql(), tsvector_update_trigger(), unaccent_dict(), xml_is_well_formed(), xml_recv(), xmlcomment(), xpath_string(), and xslt_process().
#define VARDATA_1B | ( | PTR | ) | (((varattrib_1b *) (PTR))->va_data) |
Definition at line 222 of file postgres.h.
#define VARDATA_1B_E | ( | PTR | ) | (((varattrib_1b_e *) (PTR))->va_data) |
Definition at line 223 of file postgres.h.
#define VARDATA_4B | ( | PTR | ) | (((varattrib_4b *) (PTR))->va_4byte.va_data) |
Definition at line 220 of file postgres.h.
#define VARDATA_4B_C | ( | PTR | ) | (((varattrib_4b *) (PTR))->va_compressed.va_data) |
Definition at line 221 of file postgres.h.
#define VARDATA_ANY | ( | PTR | ) | (VARATT_IS_1B(PTR) ? VARDATA_1B(PTR) : VARDATA_4B(PTR)) |
Definition at line 277 of file postgres.h.
Referenced by appendStringInfoRegexpSubstr(), appendStringInfoText(), ascii(), bcTruelen(), bpchar(), bpchar_larger(), bpchar_name(), bpchar_smaller(), bpcharcmp(), bpchareq(), bpcharge(), bpchargt(), bpcharle(), bpcharlen(), bpcharlt(), bpcharne(), btrim(), btrim1(), bytea_catenate(), bytea_string_agg_transfn(), byteacmp(), byteaeq(), byteage(), byteaGetBit(), byteaGetByte(), byteagt(), byteale(), bytealike(), bytealt(), byteane(), byteanlike(), byteaout(), byteapos(), byteatrim(), check_replace_text_has_escape_char(), citext_eq(), citext_hash(), citext_ne(), citextcmp(), compare_lexeme_textfreq(), Generic_Text_IC_like(), ghstore_consistent(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_extract_hstore_query(), hashbpchar(), hashinet(), hashtext(), hashvarlena(), hstore_defined(), hstore_delete(), hstore_exists(), hstore_fetchval(), hstore_from_array(), hstore_from_arrays(), hstore_from_text(), initcap(), internal_bpchar_pattern_compare(), internal_text_pattern_compare(), interval_part(), interval_trunc(), json_send(), levenshtein_internal(), lower(), lpad(), ltrim(), ltrim1(), map_sql_value_to_xml_value(), md5_bytea(), md5_text(), namelike(), namenlike(), parse_re_flags(), pg_convert(), RE_compile(), RE_compile_and_cache(), read_extension_script_file(), repeat(), replace_text(), replace_text_regexp(), rpad(), rtrim(), rtrim1(), setup_regexp_matches(), similar_escape(), spg_text_choose(), spg_text_inner_consistent(), spg_text_leaf_consistent(), spg_text_picksplit(), text_catenate(), text_cmp(), text_format(), text_left(), text_length(), text_name(), text_position_setup(), text_reverse(), text_right(), text_substring(), text_to_array_internal(), text_to_cstring(), text_to_cstring_buffer(), texteq(), texticregexeq(), texticregexne(), textlike(), textne(), textnlike(), textregexeq(), textregexne(), textregexsubstr(), textsend(), time_part(), timestamp_part(), timestamp_trunc(), timestamptz_part(), timestamptz_trunc(), timetz_part(), toast_compress_datum(), translate(), tsquery_opr_selec(), upper(), and varchar().
#define VARDATA_EXTERNAL | ( | PTR | ) | VARDATA_1B_E(PTR) |
Definition at line 253 of file postgres.h.
Referenced by toast_save_datum().
#define VARDATA_SHORT | ( | PTR | ) | VARDATA_1B(PTR) |
Definition at line 250 of file postgres.h.
Referenced by heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), toast_fetch_datum(), toast_fetch_datum_slice(), and toast_save_datum().
#define VARHDRSZ_EXTERNAL 2 |
Definition at line 218 of file postgres.h.
#define VARHDRSZ_SHORT 1 |
Definition at line 210 of file postgres.h.
Referenced by formTextDatum(), and toast_raw_datum_size().
#define VARRAWSIZE_4B_C | ( | PTR | ) | (((varattrib_4b *) (PTR))->va_compressed.va_rawsize) |
Definition at line 225 of file postgres.h.
Referenced by toast_raw_datum_size(), and toast_save_datum().
#define VARSIZE | ( | PTR | ) | VARSIZE_4B(PTR) |
Definition at line 247 of file postgres.h.
Referenced by _ltq_extract_regex(), _ltree_extract_isparent(), _ltree_extract_risparent(), _ltxtq_extract_exec(), add_block_entropy(), array_send(), binary_decode(), binary_encode(), bit_and(), bit_or(), bitnot(), bitsetbit(), bitshiftleft(), bitshiftright(), bitxor(), byteaSetBit(), byteaSetByte(), clear_and_pfree(), CompareTSQ(), concat_text(), convert_bytea_to_scalar(), convert_charset(), copy_ltree(), CopyOneRowTo(), copytext(), create_mbuf_from_vardata(), cube_inter(), cube_union_v0(), datum_write(), decrypt_internal(), deserialize_deflist(), encode_to_ascii(), encrypt_internal(), find_provider(), g_cube_binary_union(), g_cube_union(), g_int_union(), gbt_bytea_pf_match(), gbt_var_key_copy(), gbt_var_key_readable(), gbt_var_node_cp_len(), gbt_var_node_truncate(), gbt_var_penalty(), Generic_Text_IC_like(), get_attribute_options(), get_tablespace(), getbytealen(), ghstore_consistent(), gin_extract_hstore_query(), gin_extract_query_trgm(), gin_extract_value_trgm(), gtrgm_compress(), gtrgm_consistent(), gtrgm_distance(), gtrgm_penalty(), gtsvector_compress(), heap_fill_tuple(), heap_page_items(), heap_tuple_untoast_attr_slice(), hstore_concat(), hstore_delete(), hstore_delete_array(), hstore_delete_hstore(), hstore_hash(), hstore_slice_to_array(), hstoreArrayToPairs(), hstoreUpgrade(), hstoreValidNewFormat(), hstoreValidOldFormat(), index_form_tuple(), init_work(), interval_to_char(), length_in_encoding(), like_fixed_prefix(), load_relcache_init_file(), lowrite(), ltree2text(), ltree_compress(), ltree_concat(), ltree_out(), ltree_picksplit(), ltree_union(), make_greater_string(), makeJsonLexContext(), numeric(), numeric_abs(), numeric_to_number(), numeric_uminus(), numeric_uplus(), oldstyle_length(), page_header(), parseRelOptions(), pg_armor(), pg_dearmor(), pg_decrypt(), pg_decrypt_iv(), pg_detoast_datum_copy(), pg_digest(), pg_encrypt(), pg_encrypt_iv(), pg_file_write(), pg_hmac(), pglz_decompress(), pgxml_xpath(), plainto_tsquery_byid(), PLyBytes_FromBytea(), printtup(), printtup_internal_20(), prs_setup_firstcall(), quote_literal(), range_deserialize(), range_get_flags(), range_send(), range_set_contain_empty(), read_text_file(), record_send(), RelationParseRelOptions(), SendFunctionResult(), setup_firstcall(), show_trgm(), silly_cmp_tsvector(), similarity(), sort(), text_char(), timestamp_to_char(), timestamptz_to_char(), to_tsquery_byid(), to_tsvector_byid(), toast_compress_datum(), toast_datum_size(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_insert_or_update(), toast_raw_datum_size(), toast_save_datum(), transformRelOptions(), ts_headline_byid_opt(), ts_lexize(), ts_stat_sql(), tsa_rewrite_accum(), tsa_rewrite_finish(), tsvector_concat(), tsvector_setweight(), tsvector_update_trigger(), txid_snapshot_xip(), unaccent_dict(), write_relcache_init_file(), xml_is_well_formed(), xmlcomment(), xmlconcat(), xmlroot(), xpath_string(), and xslt_process().
#define VARSIZE_1B | ( | PTR | ) | ((((varattrib_1b *) (PTR))->va_header >> 1) & 0x7F) |
Definition at line 194 of file postgres.h.
#define VARSIZE_1B_E | ( | PTR | ) | (((varattrib_1b_e *) (PTR))->va_len_1be) |
Definition at line 196 of file postgres.h.
#define VARSIZE_4B | ( | PTR | ) | ((((varattrib_4b *) (PTR))->va_4byte.va_header >> 2) & 0x3FFFFFFF) |
Definition at line 192 of file postgres.h.
#define VARSIZE_ANY | ( | PTR | ) |
(VARATT_IS_1B_E(PTR) ? VARSIZE_1B_E(PTR) : \ (VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR) : \ VARSIZE_4B(PTR)))
Definition at line 265 of file postgres.h.
Referenced by cidr_set_masklen(), compute_minimal_stats(), compute_range_stats(), compute_scalar_stats(), compute_tsvector_stats(), datumGetSize(), inet_set_masklen(), inet_to_cidr(), memcpyDatum(), replace_text(), replace_text_regexp(), SpGistGetTypeSize(), text_to_array_internal(), and toast_insert_or_update().
#define VARSIZE_ANY_EXHDR | ( | PTR | ) |
(VARATT_IS_1B_E(PTR) ? VARSIZE_1B_E(PTR)-VARHDRSZ_EXTERNAL : \ (VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR)-VARHDRSZ_SHORT : \ VARSIZE_4B(PTR)-VARHDRSZ))
Definition at line 270 of file postgres.h.
Referenced by appendStringInfoRegexpSubstr(), appendStringInfoText(), ascii(), bcTruelen(), bpchar(), bpchar_name(), btrim(), btrim1(), bytea_catenate(), bytea_string_agg_transfn(), byteacmp(), byteage(), byteaGetBit(), byteaGetByte(), byteagt(), byteale(), bytealike(), bytealt(), byteanlike(), byteaout(), byteaoverlay_no_len(), byteapos(), byteatrim(), check_replace_text_has_escape_char(), citext_eq(), citext_hash(), citext_ne(), citextcmp(), compare_lexeme_textfreq(), do_to_timestamp(), Generic_Text_IC_like(), ghstore_consistent(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_extract_hstore_query(), hashtext(), hashvarlena(), hstore_defined(), hstore_delete(), hstore_exists(), hstore_fetchval(), hstore_from_array(), hstore_from_arrays(), hstore_from_text(), initcap(), internal_text_pattern_compare(), interval_part(), interval_trunc(), json_send(), levenshtein_internal(), lower(), lpad(), ltrim(), ltrim1(), map_sql_value_to_xml_value(), md5_bytea(), md5_text(), namelike(), namenlike(), parse_re_flags(), pg_convert(), RE_compile(), RE_compile_and_cache(), read_extension_script_file(), repeat(), replace_text_regexp(), rpad(), rtrim(), rtrim1(), setup_regexp_matches(), similar_escape(), spg_text_choose(), spg_text_inner_consistent(), spg_text_leaf_consistent(), spg_text_picksplit(), text_catenate(), text_cmp(), text_format(), text_left(), text_length(), text_name(), text_position_setup(), text_reverse(), text_right(), text_substring(), text_to_array_internal(), text_to_cstring(), text_to_cstring_buffer(), texticregexeq(), texticregexne(), textlike(), textnlike(), textregexeq(), textregexne(), textregexsubstr(), textsend(), time_part(), timestamp_part(), timestamp_trunc(), timestamptz_part(), timestamptz_trunc(), timetz_part(), toast_compress_datum(), translate(), tsquery_opr_selec(), upper(), and varchar().
#define VARSIZE_EXTERNAL | ( | PTR | ) | VARSIZE_1B_E(PTR) |
Definition at line 252 of file postgres.h.
Referenced by heap_fill_tuple(), and toast_insert_or_update().
#define VARSIZE_SHORT | ( | PTR | ) | VARSIZE_1B(PTR) |
Definition at line 249 of file postgres.h.
Referenced by datum_write(), heap_fill_tuple(), heap_tuple_untoast_attr(), heap_tuple_untoast_attr_slice(), toast_datum_size(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_raw_datum_size(), and toast_save_datum().
typedef uintptr_t Datum |
Definition at line 302 of file postgres.h.
Definition at line 306 of file postgres.h.
void ExceptionalCondition | ( | const char * | conditionName, | |
const char * | errorType, | |||
const char * | fileName, | |||
int | lineNumber | |||
) |
Definition at line 117 of file ipc_test.c.
References PointerIsValid, and write_stderr.
Referenced by pg_re_throw().
{
fprintf(stderr, "TRAP: %s(\"%s\", File: \"%s\", Line: %d)\n",
errorType, conditionName,
fileName, lineNumber);
abort();
}
Definition at line 2160 of file fmgr.c.
References palloc(), PointerGetDatum, SET_4_BYTES, and value.
Referenced by AddEnumLabel(), EnumValuesCreate(), InsertPgClassTuple(), leftmostvalue_float4(), ProcedureCreate(), and update_attstats().
{ #ifdef USE_FLOAT4_BYVAL union { float4 value; int32 retval; } myunion; myunion.value = X; return SET_4_BYTES(myunion.retval); #else float4 *retval = (float4 *) palloc(sizeof(float4)); *retval = X; return PointerGetDatum(retval); #endif }
Definition at line 2196 of file fmgr.c.
References palloc(), PointerGetDatum, and value.
Referenced by assign_random_seed(), compute_range_stats(), cost_index(), int8_to_char(), interval_avg(), leftmostvalue_float8(), normal_rand(), and spg_kd_picksplit().
Datum Int64GetDatum | ( | int64 | X | ) |
Definition at line 2150 of file fmgr.c.
References palloc(), and PointerGetDatum.
Referenced by build_minmax_path(), cash_numeric(), DefineSequence(), generate_series_step_int8(), int4_cash(), int64_to_numeric(), int8_cash(), int8_to_char(), int8range_canonical(), leftmostvalue_int8(), leftmostvalue_money(), make_const(), numeric_cash(), numeric_plus_one_over_two(), numeric_shift_right(), pg_buffercache_pages(), pg_sequence_parameters(), pg_stat_file(), pg_xlog_location_diff(), pgstatginindex(), and txid_snapshot_xip().
{ int64 *retval = (int64 *) palloc(sizeof(int64)); *retval = X; return PointerGetDatum(retval); }
PGDLLIMPORT bool assert_enabled |
Definition at line 49 of file ipc_test.c.
Referenced by AtEOXact_Buffers(), AtEOXact_CatCache(), AtEOXact_LocalBuffers(), AtProcExit_Buffers(), AtProcExit_LocalBuffers(), EventTriggerCommonSetup(), InitAuxiliaryProcess(), InitProcess(), and ProcKill().