PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
postgres_ext.h File Reference
#include "pg_config_ext.h"
Include dependency graph for postgres_ext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InvalidOid   ((Oid) 0)
#define OID_MAX   UINT_MAX
#define PG_DIAG_SEVERITY   'S'
#define PG_DIAG_SQLSTATE   'C'
#define PG_DIAG_MESSAGE_PRIMARY   'M'
#define PG_DIAG_MESSAGE_DETAIL   'D'
#define PG_DIAG_MESSAGE_HINT   'H'
#define PG_DIAG_STATEMENT_POSITION   'P'
#define PG_DIAG_INTERNAL_POSITION   'p'
#define PG_DIAG_INTERNAL_QUERY   'q'
#define PG_DIAG_CONTEXT   'W'
#define PG_DIAG_SCHEMA_NAME   's'
#define PG_DIAG_TABLE_NAME   't'
#define PG_DIAG_COLUMN_NAME   'c'
#define PG_DIAG_DATATYPE_NAME   'd'
#define PG_DIAG_CONSTRAINT_NAME   'n'
#define PG_DIAG_SOURCE_FILE   'F'
#define PG_DIAG_SOURCE_LINE   'L'
#define PG_DIAG_SOURCE_FUNCTION   'R'

Typedefs

typedef unsigned int Oid
typedef PG_INT64_TYPE pg_int64

Macro Definition Documentation

#define InvalidOid   ((Oid) 0)

Definition at line 36 of file postgres_ext.h.

Referenced by _bt_compare_scankey_args(), _bt_find_extreme_element(), _bt_first(), _bt_fix_scankey_strategy(), _bt_mkscankey(), _bt_mkscankey_nodata(), _bt_sort_array_elements(), _hash_first(), _readDistinctExpr(), _readNullIfExpr(), _readOpExpr(), _readScalarArrayOpExpr(), _SPI_execute_plan(), AcquireRewriteLocks(), AddEnumLabel(), AddNewRelationType(), addRangeTableEntry(), addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), addRangeTableEntryForJoin(), addRangeTableEntryForRelation(), addRangeTableEntryForSubquery(), addRangeTableEntryForValues(), addTargetToGroupList(), addTargetToSortList(), adjust_rowcompare_for_index(), AggregateCreate(), AlterDatabase(), AlterDatabaseSet(), AlterDomainDefault(), AlterDomainNotNull(), AlterExtensionNamespace(), AlterObjectNamespace_oid(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterOpFamilyAdd(), AlterRelationNamespaceInternal(), AlterRole(), AlterRoleSet(), AlterSequence(), AlterTableCreateToastTable(), AlterTableNamespace(), AlterTypeNamespaceInternal(), ApplyRetrieveRule(), array_agg_transfn(), array_fill_internal(), array_get_slice(), array_push(), array_to_json_internal(), arrayconst_startup_fn(), arraycontsel(), arrayexpr_startup_fn(), assign_collations_walker(), assign_expr_collations(), assign_TSCurrentConfig(), AssignTypeArrayOid(), asyncQueueAddEntries(), ATAddForeignKeyConstraint(), AtEOSubXact_cleanup(), AtEOSubXact_Namespace(), AtEOSubXact_SPI(), AtEOXact_cleanup(), AtEOXact_Namespace(), AtEOXact_SPI(), ATExecAddIndex(), ATExecChangeOwner(), ATExecDropCluster(), ATExecDropOf(), ATExecSetRelOptions(), ATExecSetTableSpace(), ATRewriteTable(), ATRewriteTables(), attnumCollationId(), AutoVacLauncherMain(), AutoVacWorkerMain(), backend_read_statsfile(), BackgroundWorkerInitializeConnection(), binary_oper_exact(), booltestsel(), BootstrapModeMain(), btcostestimate(), btree_predicate_proof(), btree_xlog_delete_get_latestRemovedXid(), build_aggregate_fnexprs(), build_coercion_expression(), build_dummy_tuple(), build_implied_join_equality(), build_minmax_path(), build_row_from_vars(), build_subplan(), buildMergedJoinVar(), CacheInvalidateCatalog(), CacheInvalidateHeapTuple(), CacheInvalidateRelcache(), CacheInvalidateRelcacheByTuple(), calc_arraycontsel(), calc_hist_selectivity(), calc_rangesel(), CancelDBBackends(), CatalogCacheInitializeCache(), check_exclusion_constraint(), check_generic_type_consistency(), check_output_expressions(), check_role(), check_sql_fn_retval(), check_temp_tablespaces(), check_timezone(), checkSharedDependencies(), classIdGetDbId(), clause_selectivity(), cluster(), coerce_record_to_complex(), coerce_to_domain(), coerce_type(), CollationGetCollid(), CommentObject(), CommuteOpExpr(), compatible_oper_opid(), compile_plperl_function(), compile_pltcl_function(), composite_to_json(), ConstructTupleDescriptor(), ConversionGetConid(), convert_EXISTS_to_ANY(), ConvertTriggerToFK(), copy_dest_receive(), copy_heap_data(), CopyFrom(), create_hashjoin_plan(), create_toast_table(), CreateCast(), CreateDestReceiver(), CreateExecutorState(), CreateExtension(), CreateProceduralLanguage(), CreateRole(), CreateSchemaCommand(), CreateTrigger(), cursor_to_xmlschema(), DefineAttr(), DefineCompositeType(), DefineDomain(), DefineEnum(), DefineOpClass(), DefineOperator(), DefineQueryRewrite(), DefineRange(), DefineRelation(), DefineSequence(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSTemplate(), DefineType(), DefineVirtualRelation(), deleteSharedDependencyRecordsFor(), distinct_col_search(), do_autovacuum(), do_compile(), do_lo_import(), do_start_worker(), DoCopy(), domain_state_setup(), domainAddConstraint(), DropAllPredicateLocksFromTable(), dropDatabaseDependencies(), dropdb(), DropRole(), dumpTSParser(), dumpTSTemplate(), enforce_generic_type_consistency(), enum_endpoint(), enum_first(), enum_last(), enum_range_all(), enum_range_bounds(), eqjoinsel_inner(), eqjoinsel_semi(), estimate_hash_bucketsize(), eval_const_expressions_mutator(), EvalPlanQualFetchRowMarks(), EventTriggerInvoke(), examine_parameter_list(), examine_simple_variable(), exec_command(), exec_get_datum_type(), exec_get_datum_type_info(), exec_move_row(), exec_move_row_from_datum(), exec_object_restorecon(), exec_parse_message(), exec_stmt_foreach_a(), ExecAlterExtensionStmt(), ExecAlterObjectSchemaStmt(), ExecAlterOwnerStmt(), ExecCallTriggerFunc(), ExecDelete(), ExecEvalArrayCoerceExpr(), ExecEvalDistinct(), ExecEvalFieldStore(), ExecEvalNullIf(), ExecEvalScalarArrayOp(), ExecHashBuildSkewHash(), ExecIndexBuildScanKeys(), ExecInitExpr(), ExecInsert(), ExecMakeTableFunctionResult(), ExecRenameStmt(), ExecUpdate(), execute_extension_script(), expand_boolean_index_clause(), expand_targetlist(), expandTupleDesc(), exprCollation(), exprInputCollation(), exprSetCollation(), exprType(), extract_autovac_opts(), fetch_agg_sort_op(), fetch_fp_info(), find_coercion_pathway(), find_oper_cache_entry(), find_typmod_coercion_function(), FindDefaultConversion(), FindDefaultConversionProc(), findFkeyCast(), findTypeInputFunction(), findTypeOutputFunction(), findTypeReceiveFunction(), findTypeSendFunction(), flatten_set_variable_args(), fmgr_info_cxt_security(), fmgr_internal_function(), fmgr_internal_validator(), fmgr_sql_validator(), foreign_expr_walker(), format_type_internal(), formrdesc(), FreeWorkerInfo(), func_get_detail(), FuncNameAsType(), FuncnameGetCandidates(), generate_append_tlist(), generate_join_implied_equalities_normal(), generate_setop_tlist(), generateClonedIndexStmt(), get_actual_variable_range(), get_array_type(), get_attstatsslot(), get_atttype(), get_base_element_type(), get_btree_test_op(), get_call_expr_argtype(), get_collation_oid(), get_commutator(), get_compatible_hash_operators(), get_constraint_index(), get_conversion_oid(), get_database_oid(), get_domain_constraint_oid(), get_element_type(), get_equality_op_for_ordering_op(), get_extension_oid(), get_extension_schema(), get_first_col_type(), get_fn_expr_argtype(), get_fn_expr_rettype(), get_func_namespace(), get_index_constraint(), get_negator(), get_object_address(), get_object_address_attribute(), get_object_address_opcf(), get_object_address_relobject(), get_object_address_type(), get_object_address_unqualified(), get_object_namespace(), get_op_hash_functions(), get_op_opfamily_sortfamily(), get_opclass_oid(), get_opcode(), get_oper_expr(), get_opfamily_member(), get_opfamily_oid(), get_opfamily_proc(), get_oprjoin(), get_oprrest(), get_ordering_op_for_equality_op(), get_ordering_op_properties(), get_other_operator(), get_range_subtype(), get_rel_infos(), get_rel_namespace(), get_rel_tablespace(), get_rel_type_id(), get_relation_by_qualified_name(), get_relation_constraint_oid(), get_rewrite_oid(), get_rewrite_oid_without_relid(), get_sort_function_for_ordering_op(), get_switched_clauses(), get_tablespace(), get_tablespace_oid(), get_trigger_oid(), get_ts_config_oid(), get_ts_dict_oid(), get_ts_parser_oid(), get_ts_template_oid(), get_tuple_from_datum(), get_typ_typrelid(), get_typcollation(), get_typmodin(), get_user_default_acl(), get_variable_range(), getAggregates(), GetAttributeByName(), GetAttributeByNum(), GetCCHashEqFuncs(), GetCurrentDict(), GetCurrentParser(), GetCurrentRoleId(), getDefaultACLs(), GetDefaultOpClass(), GetDefaultTablespace(), getDomainConstraints(), getExtensionOfObject(), getIndexes(), GetNewRelFileNode(), GetNextTempTableSpace(), getProcLangs(), GetSysCacheOid(), getTableAttrs(), getTables(), getTriggers(), getTSCurrentConfig(), GetUserMapping(), GetUserOidFromMapping(), GuessControlValues(), HandleFunctionRequest(), hash_array(), hash_inner_and_outer(), heap_create(), heap_create_with_catalog(), heap_form_tuple(), heap_truncate_find_FKs(), heap_tuple_from_minimal_tuple(), histogram_selectivity(), hstore_from_record(), hstore_populate_record(), index_constraint_create(), index_create(), index_getprocinfo(), index_reloptions(), IndexGetRelation(), ineq_histogram_selectivity(), init_sequence(), init_sql_fcache(), InitAuxiliaryProcess(), initGinState(), initGISTstate(), InitPgFdwOptions(), InitProcess(), InputFunctionCall(), int2vectorrecv(), internal_get_result_type(), intorel_receive(), intorel_startup(), InvalidateSystemCaches(), InvalidateTSCacheCallBack(), is_foreign_expr(), is_indexable_operator(), json_agg_transfn(), json_populate_record(), json_populate_recordset(), launcher_determine_sleep(), left_oper(), LexizeExec(), LexizeInit(), lo_creat(), lo_create(), lo_import(), lo_import_internal(), load_enum_cache_data(), load_relcache_init_file(), LocalExecuteInvalidationMessage(), LockSharedObject(), LockSharedObjectForSession(), lookup_fdw_handler_func(), lookup_fdw_validator_func(), lookup_type_cache(), LookupAggNameTypeNames(), LookupExplicitNamespace(), LookupFuncName(), LookupNamespaceNoError(), LookupOperName(), LookupOperNameTypeNames(), main(), make_const(), make_new_heap(), make_op(), make_opclause(), make_restrictinfo_internal(), make_row_comparison_op(), make_tuple_indirect(), makeBoolConst(), makeTargetEntry(), makeWholeRowVar(), mark_index_clustered(), match_clause_to_ordering_op(), match_rowcompare_to_indexcol(), mcv_selectivity(), moddatetime(), negate_clause(), network_prefix_quals(), NextCopyFrom(), numeric_to_number(), oidparse(), oidvectorrecv(), op_strict(), op_volatile(), OpclassnameGetOpcid(), oper(), oper_select_candidate(), OperatorCreate(), OperatorGet(), OperatorLookup(), OperatorShellMake(), OpernameGetCandidates(), OpernameGetOprid(), OpfamilynameGetOpfid(), parse_func_options(), parseNameAndArgTypes(), parseOidArray(), patternsel(), perform_relmap_update(), pg_backup_start_time(), pg_get_constraintdef_worker(), pg_get_serial_sequence(), pg_identify_object(), pg_relation_filenode(), pg_relation_filepath(), pg_tablespace_location(), pgstat_fetch_stat_tabentry(), pgstat_read_statsfiles(), pgstat_report_analyze(), pgstat_report_stat(), pgstat_report_vacuum(), PgstatCollectorMain(), PlanCacheRelCallback(), plperl_build_tuple_result(), plperl_inline_handler(), plperl_modify_tuple(), plperl_sv_to_literal(), plpgsql_compile_inline(), plpgsql_estate_setup(), plpgsql_inline_handler(), plpgsql_parse_cwordrowtype(), plpgsql_parse_wordrowtype(), plpgsql_parse_wordtype(), plpython_call_handler(), plpython_inline_handler(), plpython_validator(), pltcl_fetch_interp(), pltcl_func_handler(), PLy_procedure_get(), PLy_typeinfo_init(), populate_recordset_object_end(), postgresAddForeignUpdateTargets(), PostgresMain(), PQftable(), PQftype(), PQoidValue(), PQparamtype(), PreCommit_Notify(), prefix_quals(), prefix_selectivity(), prepare_sort_from_pathkeys(), prepare_sql_fn_parse_info(), PrepareQuery(), PrepareTempTablespaces(), preprocess_targetlist(), printTypmod(), ProcedureCreate(), process_implied_equality(), process_settings(), ProcessQuery(), ProcessUtilitySlow(), pull_up_union_leaf_queries(), PushOverrideSearchPath(), query_to_xml_and_xmlschema(), query_to_xmlschema(), RangeVarCallbackForDropRelation(), RangeVarCallbackForReindexIndex(), RangeVarGetAndCheckCreationNamespace(), RangeVarGetRelidExtended(), readRecoveryCommandFile(), ReadToc(), readtup_cluster(), ReceiveFunctionCall(), recomputeNamespacePath(), record_cmp(), record_eq(), record_in(), record_out(), record_recv(), record_send(), refnameRangeTblEntry(), regclassin(), regclassout(), regconfigin(), regconfigout(), regdictionaryin(), regdictionaryout(), regoperatorin(), regoperatorout(), regoperin(), regoperout(), regprocedurein(), regprocedureout(), regprocin(), regprocout(), regtypein(), regtypeout(), reindex_relation(), ReindexIndex(), RelationBuildLocalRelation(), RelationCacheInitializePhase3(), RelationGetIndexList(), RelationInitLockInfo(), RelationInitPhysicalAddr(), RelationMapFinishBootstrap(), RelationMapOidToFilenode(), RelationParseRelOptions(), relmap_redo(), RelnameGetRelid(), RemoveAttributeById(), RemoveRelations(), RemoveUserMapping(), rename_constraint_internal(), renameatt(), RenameConstraint(), RenameRelation(), RenameRelationInternal(), ReplaceVarsFromTargetList_callback(), ResetReindexProcessing(), resolve_generic_type(), resolve_polymorphic_argtypes(), resolve_polymorphic_tupdesc(), ResolveRecoveryConflictWithLock(), ResolveRecoveryConflictWithTablespace(), rewriteTargetListIU(), rewriteTargetListUD(), rewriteValuesRTE(), ri_HashCompareOp(), right_oper(), RoleidCallback(), RoleMembershipCacheCallback(), roles_has_privs_of(), roles_is_member_of(), scalararraysel_containment(), ScanKeyInit(), searchRangeTableForRel(), select_common_collation(), select_common_type(), select_equality_operator(), select_perl_context(), SendRecoveryConflictWithBufferPin(), set_opfuncid(), set_rel_width(), set_sa_opfuncid(), SetDefaultACLsInSchemas(), SetLocktagRelationOid(), shdepDropOwned(), shdepReassignOwned(), SPI_connect(), SPI_finish(), SPI_getargtypeid(), SPI_gettypeid(), standard_ExecutorRun(), standard_ProcessUtility(), StoreRelCheck(), string_to_bytea_const(), string_to_const(), strip_array_coercion(), swap_relation_files(), SyncScanShmemInit(), table_recheck_autovac(), targetIsInSortList(), text_format(), to_json(), toast_flatten_tuple_attribute(), toast_insert_or_update(), toast_save_datum(), transformAExprIn(), transformArrayExpr(), transformArraySubscripts(), transformArrayType(), transformColumnDefinition(), transformDistinctOnClause(), transformExprRecurse(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformGroupClause(), transformIndexConstraint(), transformIndirection(), transformTypeCast(), tsquerysel(), TypeCacheRelCallback(), TypeCreate(), typeInheritsFrom(), TypenameGetTypid(), typenameTypeMod(), TypeShellMake(), UnlockSharedObject(), UnlockSharedObjectForSession(), vac_update_datfrozenxid(), vacuum_rel(), validate_index(), validateForeignKeyConstraint(), var_eq_const(), var_eq_non_const(), variable_paramref_hook(), and xact_redo_commit_compact().

#define OID_MAX   UINT_MAX

Definition at line 39 of file postgres_ext.h.

#define PG_DIAG_COLUMN_NAME   'c'
#define PG_DIAG_CONSTRAINT_NAME   'n'
#define PG_DIAG_CONTEXT   'W'
#define PG_DIAG_DATATYPE_NAME   'd'
#define PG_DIAG_INTERNAL_POSITION   'p'

Definition at line 57 of file postgres_ext.h.

Referenced by pqGetErrorNotice3(), and send_message_to_frontend().

#define PG_DIAG_INTERNAL_QUERY   'q'

Definition at line 58 of file postgres_ext.h.

Referenced by pqGetErrorNotice3(), and send_message_to_frontend().

#define PG_DIAG_MESSAGE_DETAIL   'D'
#define PG_DIAG_MESSAGE_HINT   'H'
#define PG_DIAG_SCHEMA_NAME   's'
#define PG_DIAG_SEVERITY   'S'
#define PG_DIAG_SOURCE_FILE   'F'

Definition at line 65 of file postgres_ext.h.

Referenced by pqGetErrorNotice3(), and send_message_to_frontend().

#define PG_DIAG_SOURCE_FUNCTION   'R'

Definition at line 67 of file postgres_ext.h.

Referenced by pqGetErrorNotice3(), and send_message_to_frontend().

#define PG_DIAG_SOURCE_LINE   'L'

Definition at line 66 of file postgres_ext.h.

Referenced by pqGetErrorNotice3(), and send_message_to_frontend().

#define PG_DIAG_STATEMENT_POSITION   'P'

Definition at line 56 of file postgres_ext.h.

Referenced by pqGetErrorNotice3(), and send_message_to_frontend().

#define PG_DIAG_TABLE_NAME   't'

Typedef Documentation

typedef unsigned int Oid

Definition at line 31 of file postgres_ext.h.

typedef PG_INT64_TYPE pg_int64

Definition at line 43 of file postgres_ext.h.