PostgreSQL Source Code git master
|
Go to the source code of this file.
Macros | |
#define | MAXINT8LEN 20 |
#define | CStringGetTextDatum(s) PointerGetDatum(cstring_to_text(s)) |
#define | TextDatumGetCString(d) text_to_cstring((text *) DatumGetPointer(d)) |
#define | FORMAT_TYPE_TYPEMOD_GIVEN 0x01 /* typemod defined by caller */ |
#define | FORMAT_TYPE_ALLOW_INVALID 0x02 /* allow invalid types */ |
#define | FORMAT_TYPE_FORCE_QUALIFY 0x04 /* force qualification of type */ |
#define | FORMAT_TYPE_INVALID_AS_NULL 0x08 /* NULL if undefined */ |
Functions | |
bool | parse_bool (const char *value, bool *result) |
bool | parse_bool_with_len (const char *value, size_t len, bool *result) |
void | domain_check (Datum value, bool isnull, Oid domainType, void **extra, MemoryContext mcxt) |
bool | domain_check_safe (Datum value, bool isnull, Oid domainType, void **extra, MemoryContext mcxt, Node *escontext) |
int | errdatatype (Oid datatypeOid) |
int | errdomainconstraint (Oid datatypeOid, const char *conname) |
uint64 | hex_encode (const char *src, size_t len, char *dst) |
uint64 | hex_decode (const char *src, size_t len, char *dst) |
uint64 | hex_decode_safe (const char *src, size_t len, char *dst, Node *escontext) |
int2vector * | buildint2vector (const int16 *int2s, int n) |
void | namestrcpy (Name name, const char *str) |
int | namestrcmp (Name name, const char *str) |
int16 | pg_strtoint16 (const char *s) |
int16 | pg_strtoint16_safe (const char *s, Node *escontext) |
int32 | pg_strtoint32 (const char *s) |
int32 | pg_strtoint32_safe (const char *s, Node *escontext) |
int64 | pg_strtoint64 (const char *s) |
int64 | pg_strtoint64_safe (const char *s, Node *escontext) |
uint32 | uint32in_subr (const char *s, char **endloc, const char *typname, Node *escontext) |
uint64 | uint64in_subr (const char *s, char **endloc, const char *typname, Node *escontext) |
int | pg_itoa (int16 i, char *a) |
int | pg_ultoa_n (uint32 value, char *a) |
int | pg_ulltoa_n (uint64 value, char *a) |
int | pg_ltoa (int32 value, char *a) |
int | pg_lltoa (int64 value, char *a) |
char * | pg_ultostr_zeropad (char *str, uint32 value, int32 minwidth) |
char * | pg_ultostr (char *str, uint32 value) |
oidvector * | buildoidvector (const Oid *oids, int n) |
Oid | oidparse (Node *node) |
int | oid_cmp (const void *p1, const void *p2) |
char * | regexp_fixed_prefix (text *text_re, bool case_insensitive, Oid collation, bool *exact) |
const char * | quote_identifier (const char *ident) |
char * | quote_qualified_identifier (const char *qualifier, const char *ident) |
void | generate_operator_clause (fmStringInfo buf, const char *leftop, Oid leftoptype, Oid opoid, const char *rightop, Oid rightoptype) |
int | bpchartruelen (char *s, int len) |
text * | cstring_to_text (const char *s) |
text * | cstring_to_text_with_len (const char *s, int len) |
char * | text_to_cstring (const text *t) |
void | text_to_cstring_buffer (const text *src, char *dst, size_t dst_len) |
int | xidComparator (const void *arg1, const void *arg2) |
int | xidLogicalComparator (const void *arg1, const void *arg2) |
char * | pg_inet_cidr_ntop (int af, const void *src, int bits, char *dst, size_t size) |
int | pg_inet_net_pton (int af, const char *src, void *dst, size_t size) |
double | convert_network_to_scalar (Datum value, Oid typid, bool *failure) |
Datum | network_scan_first (Datum in) |
Datum | network_scan_last (Datum in) |
void | clean_ipv6_addr (int addr_family, char *addr) |
Datum | numeric_float8_no_overflow (PG_FUNCTION_ARGS) |
char * | format_type_extended (Oid type_oid, int32 typemod, bits16 flags) |
char * | format_type_be (Oid type_oid) |
char * | format_type_be_qualified (Oid type_oid) |
char * | format_type_with_typemod (Oid type_oid, int32 typemod) |
int32 | type_maximum_size (Oid type_oid, int32 typemod) |
char * | quote_literal_cstr (const char *rawstr) |
Variables | |
PGDLLIMPORT bool | quote_all_identifiers |
#define CStringGetTextDatum | ( | s | ) | PointerGetDatum(cstring_to_text(s)) |
Definition at line 97 of file builtins.h.
Definition at line 125 of file builtins.h.
#define FORMAT_TYPE_FORCE_QUALIFY 0x04 /* force qualification of type */ |
Definition at line 126 of file builtins.h.
#define FORMAT_TYPE_INVALID_AS_NULL 0x08 /* NULL if undefined */ |
Definition at line 127 of file builtins.h.
#define FORMAT_TYPE_TYPEMOD_GIVEN 0x01 /* typemod defined by caller */ |
Definition at line 124 of file builtins.h.
#define MAXINT8LEN 20 |
Definition at line 22 of file builtins.h.
#define TextDatumGetCString | ( | d | ) | text_to_cstring((text *) DatumGetPointer(d)) |
Definition at line 98 of file builtins.h.
int bpchartruelen | ( | char * | s, |
int | len | ||
) |
Definition at line 676 of file varchar.c.
Referenced by bcTruelen(), bpcharfastcmp_c(), varstr_abbrev_convert(), and varstrfastcmp_locale().
int2vector * buildint2vector | ( | const int16 * | int2s, |
int | n | ||
) |
Definition at line 114 of file int.c.
References int2vector::dataoffset, int2vector::dim1, int2vector::elemtype, Int2VectorSize, int2vector::lbound1, int2vector::ndim, palloc0(), SET_VARSIZE, and int2vector::values.
Referenced by attnumstoint2vector(), CreateStatistics(), CreateTriggerFiringOn(), pg_get_publication_tables(), StorePartitionKey(), and UpdateIndexRelation().
Definition at line 87 of file oid.c.
References oidvector::dataoffset, oidvector::dim1, oidvector::elemtype, oidvector::lbound1, oidvector::ndim, OidVectorSize, palloc0(), SET_VARSIZE, and oidvector::values.
Referenced by DefineAggregate(), interpret_function_parameter_list(), makeMultirangeConstructors(), makeRangeConstructors(), StorePartitionKey(), and UpdateIndexRelation().
void clean_ipv6_addr | ( | int | addr_family, |
char * | addr | ||
) |
Definition at line 2089 of file network.c.
Referenced by fill_hba_line(), inet_client_addr(), inet_server_addr(), pg_stat_get_activity(), and pg_stat_get_backend_client_addr().
Definition at line 1496 of file network.c.
References macaddr::a, macaddr8::a, macaddr::b, macaddr8::b, macaddr::c, macaddr8::c, macaddr::d, macaddr8::d, DatumGetInetPP(), DatumGetMacaddr8P(), DatumGetMacaddrP(), macaddr::e, macaddr8::e, macaddr::f, macaddr8::f, macaddr8::g, macaddr8::h, i, ip_addr, ip_family, len, PGSQL_AF_INET, res, and value.
Referenced by convert_to_scalar(), gbt_inet_compress(), and gbt_inet_consistent().
text * cstring_to_text | ( | const char * | s | ) |
Definition at line 184 of file varlena.c.
References cstring_to_text_with_len().
Referenced by array_dims(), ASN1_STRING_to_text(), booltext(), brin_minmax_multi_summary_out(), brin_page_type(), build_test_info_result(), build_test_match_result(), cidr_abbrev(), convert_charset(), cstring_to_xmltype(), current_query(), datetime_to_char_body(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dblink_cancel_query(), dblink_close(), dblink_connect(), dblink_disconnect(), dblink_error_message(), dblink_exec(), dblink_open(), dmetaphone(), dmetaphone_alt(), exec_assign_c_string(), executeDateTimeMethod(), filter_list_to_array(), format_type(), get_command_tag(), get_command_type(), get_scalar(), hash_page_type(), icu_unicode_version(), inet_abbrev(), initcap(), json_in(), json_typeof(), jsonb_get_element(), jsonb_typeof(), JsonbValueAsText(), lower(), md5_bytea(), md5_text(), metaphone(), name_bpchar(), name_text(), network_host(), network_show(), oidvectortypes(), ParameterAclCreate(), ParameterAclLookup(), pg_collation_actual_version(), pg_collation_for(), pg_column_compression(), pg_crypt(), pg_current_logfile(), pg_database_collation_actual_version(), pg_describe_object(), pg_export_snapshot(), pg_get_statisticsobjdef_expressions(), pg_get_wal_replay_pause_state(), pg_parameter_aclmask(), pg_relation_filepath(), pg_size_pretty(), pg_size_pretty_numeric(), pg_stat_get_backend_activity(), pg_stat_get_backend_wait_event(), pg_stat_get_backend_wait_event_type(), pg_stat_get_slru(), pg_stats_ext_mcvlist_items(), pg_tablespace_location(), pg_walfile_name(), pg_xact_status(), pgsql_version(), pgxml_result_to_text(), quote_ident(), quote_ident_cstr(), quote_nullable(), sepgsql_getcon(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), set_config_by_name(), show_all_file_settings(), show_config_by_name(), show_config_by_name_missing_ok(), ShowAllGUCConfig(), soundex(), split_part(), ssl_cipher(), ssl_client_dn(), ssl_issuer_dn(), ssl_version(), string_to_text(), test_canonicalize_path(), test_slru_page_read(), test_slru_page_readonly(), text_substring(), textin(), timeofday(), timetz_at_local(), tsquerytree(), unaccent_dict(), unicode_version(), upper(), xml_encode_special_chars(), xml_in(), and xml_recv().
text * cstring_to_text_with_len | ( | const char * | s, |
int | len | ||
) |
Definition at line 196 of file varlena.c.
References len, palloc(), SET_VARSIZE, VARDATA, and VARHDRSZ.
Referenced by array_to_json(), array_to_json_pretty(), array_to_text_internal(), brin_minmax_multi_summary_out(), build_regexp_match_result(), build_regexp_split_result(), build_test_match_result(), cash_words(), compute_tsvector_stats(), concat_internal(), convert_to_base(), cstring_to_text(), daitch_mokotoff_coding(), datum_to_json(), do_text_output_multiline(), dotrim(), each_object_field_end(), each_worker_jsonb(), elements_array_element_end(), ExecEvalMergeSupportFunc(), ExecEvalXmlExpr(), executeDateTimeMethod(), executeLikeRegex(), find_or_create_child_node(), fsm_page_contents(), get_array_element_end(), get_array_end(), get_object_end(), get_object_field_end(), get_scalar(), gin_extract_tsquery(), gin_extract_tsvector(), hstore_akeys(), hstore_avals(), hstore_each(), hstore_fetchval(), hstore_skeys(), hstore_slice_to_array(), hstore_subscript_fetch(), hstore_svals(), hstore_to_array_internal(), hstore_to_json(), hstore_to_json_loose(), json_build_array_noargs(), json_build_array_worker(), json_build_object_noargs(), json_build_object_worker(), json_object(), json_object_two_arg(), json_recv(), json_strip_nulls(), jsonb_pretty(), JsonbValueAsText(), leftmostvalue_text(), LogicalOutputWrite(), parse_ident(), pg_gen_salt(), pg_gen_salt_rounds(), pg_get_function_sqlbody(), replace_text(), replace_text_regexp(), row_to_json(), row_to_json_pretty(), serialize_deflist(), split_part(), split_text(), ssl_extension_info(), string_agg_finalfn(), stringinfo_to_xmltype(), text_format(), text_left(), text_right(), textrecv(), transform_json_string_values(), tsquerytree(), tsvector_to_array(), tsvector_unnest(), unistr(), varchar(), varchar_input(), xmltext(), xmltotext_with_options(), and xslt_process().
void domain_check | ( | Datum | value, |
bool | isnull, | ||
Oid | domainType, | ||
void ** | extra, | ||
MemoryContext | mcxt | ||
) |
Definition at line 346 of file domains.c.
References domain_check_internal(), and value.
Referenced by check_domain_for_new_field(), check_domain_for_new_tuple(), expanded_record_set_fields(), hstore_populate_record(), plperl_return_next_internal(), plperl_sv_to_datum(), plpgsql_exec_function(), pltcl_build_tuple_result(), and PLyObject_ToDomain().
bool domain_check_safe | ( | Datum | value, |
bool | isnull, | ||
Oid | domainType, | ||
void ** | extra, | ||
MemoryContext | mcxt, | ||
Node * | escontext | ||
) |
Definition at line 355 of file domains.c.
References domain_check_internal(), and value.
Referenced by ExecEvalJsonCoercion(), populate_composite(), populate_domain(), and populate_recordset_record().
int errdatatype | ( | Oid | datatypeOid | ) |
Definition at line 407 of file domains.c.
References elog, err_generic_string(), ERROR, get_namespace_name(), GETSTRUCT, HeapTupleIsValid, NameStr, ObjectIdGetDatum(), PG_DIAG_DATATYPE_NAME, PG_DIAG_SCHEMA_NAME, ReleaseSysCache(), and SearchSysCache1().
Referenced by domain_check_input(), errdomainconstraint(), and ExecEvalConstraintNotNull().
int errdomainconstraint | ( | Oid | datatypeOid, |
const char * | conname | ||
) |
Definition at line 431 of file domains.c.
References err_generic_string(), errdatatype(), and PG_DIAG_CONSTRAINT_NAME.
Referenced by domain_check_input(), and ExecEvalConstraintCheck().
char * format_type_be | ( | Oid | type_oid | ) |
Definition at line 343 of file format_type.c.
References format_type_extended().
Referenced by aclcheck_error_type(), addFamilyMember(), addRangeTableEntryForFunction(), AggregateCreate(), AlterType(), AlterTypeNamespace(), AlterTypeNamespace_oid(), AlterTypeNamespaceInternal(), AlterTypeOwner(), AlterTypeOwnerInternal(), analyzeCTE(), appendTypeNameToBuffer(), array_cat(), array_cmp(), array_contain_compare(), array_eq(), array_position_common(), array_positions(), array_recv(), array_replace_internal(), array_send(), assign_record_type_identifier(), ATAddForeignKeyConstraint(), ATExecAlterColumnType(), ATPrepAlterColumnType(), brinvalidate(), btvalidate(), build_attrmap_by_name(), build_column_default(), build_datatype(), build_subplan(), CastCreate(), check_object_ownership(), check_of_type(), check_safe_enum_use(), check_sql_fn_retval(), check_valid_polymorphic_signature(), CheckAttributeType(), checkDomainOwner(), checkEnumOwner(), checkRuleResultList(), CheckVarSlotCompatibility(), coerce_record_to_complex(), coerce_to_boolean(), coerce_to_common_type(), coerce_to_specific_type_typmod(), coerce_type(), coerceJsonFuncExpr(), compare_values_of_enum(), compile_plperl_function(), compile_pltcl_function(), ComputeIndexAttrs(), ComputePartitionAttrs(), cookDefault(), create_ctas_nodata(), CreateCast(), CreateFunction(), CreateStatistics(), CreateTransform(), DefineAggregate(), DefineDomain(), DefineRange(), DefineType(), do_compile(), domain_check_input(), domain_state_setup(), dropOperators(), dropProcedures(), enforce_generic_type_consistency(), enum_first(), enum_in(), enum_last(), enum_recv(), EvaluateParams(), exec_stmt_foreach_a(), ExecAlterExtensionContentsRecurse(), ExecBuildUpdateProjection(), ExecCheckPlanOutput(), ExecEvalArrayExpr(), ExecEvalConstraintCheck(), ExecEvalConstraintNotNull(), ExecEvalFieldSelect(), ExecEvalParamExtern(), ExecEvalWholeRowVar(), ExecInitAgg(), ExecInitExprRec(), ExecInitSubscriptingRef(), exprType(), extract_date(), fetch_cursor_param_value(), findRangeSubOpclass(), findTypeInputFunction(), findTypeReceiveFunction(), fmgr_sql_validator(), format_operator_extended(), format_procedure_extended(), funcname_signature_string(), get_cached_rowtype(), get_cast_oid(), get_domain_constraint_oid(), get_expr_result_tupdesc(), get_multirange_io_data(), get_range_io_data(), get_rels_with_domain(), get_sort_group_operators(), get_transform_oid(), get_ts_parser_func(), get_ts_template_func(), GetAttributeCompression(), GetAttributeStorage(), GetColumnDefCollation(), GetDefaultOpClass(), getObjectDescription(), GetOperatorFromCompareType(), getTypeBinaryInputInfo(), getTypeBinaryOutputInfo(), getTypeInputInfo(), getTypeOutputInfo(), hash_array(), hash_array_extended(), hash_multirange(), hash_multirange_extended(), hash_range(), hash_range_extended(), hash_record(), hash_record_extended(), hashvalidate(), init_params(), initArrayResultArr(), initGinState(), internal_get_result_type(), interval_part_common(), interval_trunc(), intorel_startup(), jsonb_subscript_transform(), JsonItemFromDatum(), load_enum_cache_data(), lookup_rowtype_tupdesc_domain(), lookup_rowtype_tupdesc_internal(), LookupTypeNameExtended(), make_expanded_record_from_tupdesc(), make_expanded_record_from_typeid(), make_row_comparison_op(), make_scalar_array_op(), NonFiniteIntervalPart(), NonFiniteTimestampTzPart(), op_signature_string(), ParseFuncOrColumn(), pg_collation_for(), plperl_array_to_datum(), plperl_sv_to_datum(), plperl_validator(), plpgsql_build_datatype_arrayof(), plpgsql_build_variable(), plpgsql_param_eval_generic(), plpgsql_param_eval_generic_ro(), plpgsql_param_eval_recfield(), plpgsql_validator(), PLy_procedure_create(), prepare_sql_fn_parse_info(), print_function_arguments(), print_function_rettype(), print_function_trftypes(), processIndirection(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), regtypeout(), RelationBuildPartitionKey(), RenameConstraintById(), RenameType(), resolve_anyarray_from_others(), resolve_anyelement_from_others(), resolve_anymultirange_from_others(), resolve_anyrange_from_others(), ResolveOpClass(), revalidate_rectypeid(), ri_HashCompareOp(), satisfies_hash_partition(), select_common_type(), select_common_type_from_oids(), spgvalidate(), stats_check_arg_type(), stats_fill_fcinfo_from_arg_pairs(), storeOperators(), storeProcedures(), time_part_common(), timestamp_part_common(), timestamp_trunc(), timestamptz_part_common(), timestamptz_trunc_internal(), timetz_part_common(), transformAggregateCall(), transformArrayExpr(), transformAssignedExpr(), transformAssignmentIndirection(), transformAssignmentSubscripts(), transformCollateClause(), transformColumnType(), transformContainerSubscripts(), transformFrameOffset(), transformJsonBehavior(), transformJsonFuncExpr(), transformJsonIsPredicate(), transformJsonReturning(), transformJsonSerializeExpr(), transformJsonValueExpr(), transformPartitionBoundValue(), transformPLAssignStmt(), transformTypeCast(), transformXmlSerialize(), tuple_to_stringinfo(), tupledesc_match(), tuples_equal(), unknown_attribute(), validateConnectbyTupleDesc(), variable_coerce_param_hook(), and width_bucket_array().
char * format_type_be_qualified | ( | Oid | type_oid | ) |
Definition at line 353 of file format_type.c.
References format_type_extended(), and FORMAT_TYPE_FORCE_QUALIFY.
Referenced by format_operator_extended(), format_operator_parts(), format_procedure_extended(), format_procedure_parts(), and getObjectIdentityParts().
Definition at line 112 of file format_type.c.
References buf, elog, ERROR, FORMAT_TYPE_ALLOW_INVALID, FORMAT_TYPE_FORCE_QUALIFY, FORMAT_TYPE_INVALID_AS_NULL, FORMAT_TYPE_TYPEMOD_GIVEN, get_namespace_name_or_temp(), GETSTRUCT, HeapTupleIsValid, InvalidOid, NameStr, ObjectIdGetDatum(), printTypmod(), psprintf(), pstrdup(), quote_qualified_identifier(), ReleaseSysCache(), SearchSysCache1(), TypeIsVisible(), and typname.
Referenced by array_recv(), deparse_type_name(), format_type(), format_type_be(), format_type_be_qualified(), format_type_with_typemod(), gbtreekey_in(), getObjectDescription(), getObjectIdentityParts(), lookup_am_handler_func(), oidvectortypes(), and record_recv().
Definition at line 362 of file format_type.c.
References format_type_extended(), and FORMAT_TYPE_TYPEMOD_GIVEN.
Referenced by analyzeCTE(), ATPrepAlterColumnType(), build_attrmap_by_position(), checkRuleResultList(), checkViewColumns(), compatConnectbyTupleDescs(), compatCrosstabTupleDescs(), get_coercion_expr(), get_const_expr(), get_from_clause_coldeflist(), get_json_returning(), get_json_table_columns(), get_rule_expr(), get_rule_expr_funccall(), get_variable(), get_xmltable(), MergeChildAttribute(), and MergeInheritedAttribute().
void generate_operator_clause | ( | fmStringInfo | buf, |
const char * | leftop, | ||
Oid | leftoptype, | ||
Oid | opoid, | ||
const char * | rightop, | ||
Oid | rightoptype | ||
) |
Definition at line 13285 of file ruleutils.c.
References add_cast_to(), appendStringInfo(), appendStringInfoString(), Assert, buf, elog, ERROR, get_namespace_name(), GETSTRUCT, HeapTupleIsValid, NameStr, ObjectIdGetDatum(), quote_identifier(), ReleaseSysCache(), and SearchSysCache1().
Referenced by refresh_by_match_merge(), and ri_GenerateQual().
uint64 hex_decode | ( | const char * | src, |
size_t | len, | ||
char * | dst | ||
) |
Definition at line 190 of file encode.c.
References hex_decode_safe(), and len.
Definition at line 196 of file encode.c.
References ereturn, errcode(), errmsg(), get_hex(), len, and pg_mblen().
Referenced by byteain(), and hex_decode().
uint64 hex_encode | ( | const char * | src, |
size_t | len, | ||
char * | dst | ||
) |
Definition at line 162 of file encode.c.
Referenced by AddFileToBackupManifest(), byteaout(), and SendBackupManifest().
int namestrcmp | ( | Name | name, |
const char * | str | ||
) |
Definition at line 247 of file name.c.
References name, NAMEDATALEN, NameStr, and str.
Referenced by AlterEventTrigger(), attnameAttNum(), CopyGetAttnums(), expanded_record_lookup_field(), GetAttributeByName(), InitPostgres(), NextCopyFromRawFields(), and SPI_fnumber().
void namestrcpy | ( | Name | name, |
const char * | str | ||
) |
Definition at line 233 of file name.c.
References name, NAMEDATALEN, NameStr, and str.
Referenced by AddEnumLabel(), AlterObjectRename_internal(), CatCacheCopyKeys(), CollationCreate(), ConstructTupleDescriptor(), ConversionCreate(), CreateConstraintEntry(), CreateInitDecodingContext(), CreateOpFamily(), CreateProceduralLanguage(), CreateStatistics(), current_database(), DefineAttr(), DefineOpClass(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), EnumValuesCreate(), ExecTypeSetColNames(), formrdesc(), getJsonEncodingConst(), index_concurrently_swap(), insert_event_trigger_tuple(), InsertRule(), NamespaceCreate(), OperatorCreate(), OperatorShellMake(), pg_stat_get_replication_slot(), ProcedureCreate(), RelationBuildLocalRelation(), RemoveAttributeById(), rename_policy(), renameatt_internal(), RenameConstraintById(), RenameDatabase(), RenameEnumLabel(), RenameRelationInternal(), RenameRewriteRule(), RenameSchema(), RenameTableSpace(), renametrig_internal(), RenameTypeInternal(), ReplicationSlotCreate(), ReplicationSlotName(), StoreIndexTuple(), synchronize_one_slot(), TupleDescInitBuiltinEntry(), TupleDescInitEntry(), TypeCreate(), TypeGetTupleDesc(), TypeShellMake(), and update_local_synced_slot().
Definition at line 1684 of file network.c.
References DirectFunctionCall1, and network_network().
Referenced by match_network_subset().
Definition at line 1698 of file network.c.
References DirectFunctionCall1, DirectFunctionCall2, inet_set_masklen(), Int32GetDatum(), and network_broadcast().
Referenced by match_network_subset().
Datum numeric_float8_no_overflow | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4779 of file numeric.c.
References get_float8_nan(), init_var_from_num(), NUMERIC_IS_NINF, NUMERIC_IS_PINF, NUMERIC_IS_SPECIAL, numericvar_to_double_no_overflow(), PG_GETARG_NUMERIC, PG_RETURN_FLOAT8, val, and x.
Referenced by convert_numeric_to_scalar(), and gbt_numeric_penalty().
int oid_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Definition at line 258 of file oid.c.
References p2, and pg_cmp_u32().
Referenced by aclmembers(), AlterSubscription_refresh(), EnumValuesCreate(), and find_inheritance_children_extended().
Definition at line 235 of file oid.c.
References castNode, elog, ERROR, intVal, InvalidOid, nodeTag, and uint32in_subr().
Referenced by get_object_address().
bool parse_bool | ( | const char * | value, |
bool * | result | ||
) |
Definition at line 31 of file bool.c.
References parse_bool_with_len(), and value.
Referenced by executeItemOptUnwrapTarget(), GrantRole(), parse_and_validate_value(), parse_basebackup_options(), parse_extension_control_file(), parse_one_reloption(), pg_decode_startup(), and ProcessStartupPacket().
bool parse_bool_with_len | ( | const char * | value, |
size_t | len, | ||
bool * | result | ||
) |
Definition at line 37 of file bool.c.
References len, pg_strncasecmp(), and value.
Referenced by boolin(), and parse_bool().
char * pg_inet_cidr_ntop | ( | int | af, |
const void * | src, | ||
int | bits, | ||
char * | dst, | ||
size_t | size | ||
) |
Definition at line 56 of file inet_cidr_ntop.c.
References EAFNOSUPPORT, inet_cidr_ntop_ipv4(), inet_cidr_ntop_ipv6(), PGSQL_AF_INET, PGSQL_AF_INET6, and size.
Referenced by cidr_abbrev().
int pg_inet_net_pton | ( | int | af, |
const char * | src, | ||
void * | dst, | ||
size_t | size | ||
) |
Definition at line 61 of file inet_net_pton.c.
References EAFNOSUPPORT, inet_cidr_pton_ipv4(), inet_cidr_pton_ipv6(), inet_net_pton_ipv4(), inet_net_pton_ipv6(), PGSQL_AF_INET, PGSQL_AF_INET6, and size.
Referenced by network_in().
int pg_itoa | ( | int16 | i, |
char * | a | ||
) |
Definition at line 1042 of file numutils.c.
References a, i, and pg_ltoa().
Referenced by int2out(), int2vectorout(), LogicalTapeImport(), and LogicalTapeSetCreate().
int pg_lltoa | ( | int64 | value, |
char * | a | ||
) |
Definition at line 1227 of file numutils.c.
References a, len, pg_ulltoa_n(), and value.
Referenced by int8out(), and printsimple().
int pg_ltoa | ( | int32 | value, |
char * | a | ||
) |
Definition at line 1120 of file numutils.c.
References a, len, pg_ultoa_n(), and value.
Referenced by executeItemOptUnwrapTarget(), int4out(), pg_itoa(), and printsimple().
int16 pg_strtoint16 | ( | const char * | s | ) |
Definition at line 122 of file numutils.c.
References pg_strtoint16_safe().
Definition at line 128 of file numutils.c.
References ereturn, errcode(), errmsg(), hexlookup, likely, PG_INT16_MAX, PG_INT16_MIN, pg_neg_u16_overflow(), and unlikely.
Referenced by int2in(), and pg_strtoint16().
int32 pg_strtoint32 | ( | const char * | s | ) |
Definition at line 383 of file numutils.c.
References pg_strtoint32_safe().
Referenced by ArrayGetIntegerTypmods(), check_foreign_key(), libpqrcv_endstreaming(), libpqrcv_identify_system(), pq_parse_errornotice(), prsd_headline(), and text_format().
Definition at line 389 of file numutils.c.
References ereturn, errcode(), errmsg(), hexlookup, likely, PG_INT32_MAX, PG_INT32_MIN, pg_neg_u32_overflow(), and unlikely.
Referenced by int4in(), pg_strtoint32(), and process_integer_literal().
int64 pg_strtoint64 | ( | const char * | s | ) |
Definition at line 644 of file numutils.c.
References pg_strtoint64_safe().
Referenced by defGetCopyRejectLimitOption().
Definition at line 650 of file numutils.c.
References ereturn, errcode(), errmsg(), hexlookup, likely, PG_INT64_MAX, PG_INT64_MIN, pg_neg_u64_overflow(), and unlikely.
Referenced by int8in(), make_const(), and pg_strtoint64().
int pg_ulltoa_n | ( | uint64 | value, |
char * | a | ||
) |
Definition at line 1140 of file numutils.c.
References a, decimalLength64(), DIGIT_TABLE, i, and value.
Referenced by BuildQueryCompletionString(), and pg_lltoa().
int pg_ultoa_n | ( | uint32 | value, |
char * | a | ||
) |
Definition at line 1055 of file numutils.c.
References a, decimalLength32(), DIGIT_TABLE, i, and value.
Referenced by pg_ltoa(), pg_ultostr(), pg_ultostr_zeropad(), and printsimple().
char * pg_ultostr | ( | char * | str, |
uint32 | value | ||
) |
Definition at line 1307 of file numutils.c.
References len, pg_ultoa_n(), str, and value.
Referenced by AppendSeconds().
Definition at line 1267 of file numutils.c.
References Assert, DIGIT_TABLE, len, pg_ultoa_n(), str, and value.
Referenced by AppendSeconds(), EncodeDateOnly(), EncodeDateTime(), EncodeTimeOnly(), and EncodeTimezone().
const char * quote_identifier | ( | const char * | ident | ) |
Definition at line 12875 of file ruleutils.c.
References ident, palloc(), pg_malloc(), quote_all_identifiers, ScanKeywordCategories, ScanKeywordLookup(), ScanKeywords, and UNRESERVED_KEYWORD.
Referenced by add_cast_to(), appendFunctionName(), ATPrepAlterColumnType(), CheckMyDatabase(), copy_table(), createdb(), CreateSchemaCommand(), decompile_column_index_array(), deparseAnalyzeSql(), deparseColumnRef(), deparseOperatorName(), deparseRelation(), execute_extension_script(), ExplainIndexScanDetails(), ExplainNode(), ExplainTargetRel(), flatten_set_variable_args(), format_operator_extended(), generate_operator_clause(), generate_operator_name(), get_column_alias_list(), get_from_clause_coldeflist(), get_from_clause_item(), get_insert_query_def(), get_json_table(), get_json_table_columns(), get_json_table_nested_columns(), get_merge_query_def(), get_opclass_name(), get_parameter(), get_reloptions(), get_rte_alias(), get_rule_expr(), get_rule_windowclause(), get_rule_windowspec(), get_select_query_def(), get_target_list(), get_update_query_targetlist_def(), get_utility_query_def(), get_variable(), get_windowfunc_expr_helper(), get_with_clause(), get_xmltable(), getObjectIdentityParts(), libpqrcv_alter_slot(), make_ruledef(), NameListToQuotedString(), old_9_6_invalidate_hash_indexes(), pg_get_constraintdef_worker(), pg_get_functiondef(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_statisticsobj_worker(), pg_get_triggerdef_worker(), pg_identify_object(), PLy_quote_ident(), postgresExplainForeignScan(), postgresImportForeignSchema(), print_function_arguments(), process_extension_updates(), processIndirection(), quote_ident(), quote_object_name(), quote_qualified_identifier(), regnamespaceout(), regoperout(), regroleout(), ReplicationSlotDropAtPubNode(), sepgsql_attribute_post_create(), sepgsql_database_post_create(), sepgsql_relation_post_create(), sepgsql_schema_post_create(), serialize_deflist(), set_frozenxids(), show_sortorder_options(), text_format_string_conversion(), tuple_to_stringinfo(), and worker_spi_main().
char * quote_literal_cstr | ( | const char * | rawstr | ) |
Definition at line 103 of file quote.c.
References len, palloc(), and quote_literal_internal().
Referenced by build_tuplestore_recursively(), fetch_remote_table_info(), get_sql_delete(), get_sql_insert(), get_sql_update(), get_tuple_of_interest(), GetPublicationsStr(), pg_decode_commit_prepared_txn(), pg_decode_prepare_txn(), pg_decode_rollback_prepared_txn(), pg_decode_stream_prepare(), PLy_quote_literal(), PLy_quote_nullable(), text_format_string_conversion(), and validate_remote_info().
char * quote_qualified_identifier | ( | const char * | qualifier, |
const char * | ident | ||
) |
Definition at line 12959 of file ruleutils.c.
References appendStringInfo(), appendStringInfoString(), buf, ident, initStringInfo(), and quote_identifier().
Referenced by check_default_text_search_config(), copy_table(), create_pg_locale(), format_procedure_extended(), format_type_extended(), generate_collation_name(), generate_function_name(), generate_qualified_relation_name(), generate_qualified_type_name(), generate_relation_name(), getObjectDescription(), getObjectIdentityParts(), getOpFamilyDescription(), getOpFamilyIdentity(), getRelationDescription(), getRelationIdentity(), pg_decode_change(), pg_decode_truncate(), pg_get_functiondef(), pg_get_statisticsobj_worker(), refresh_by_match_merge(), RefreshMatViewByOid(), regclassout(), regcollationout(), regconfigout(), regdictionaryout(), regprocout(), sepgsql_proc_post_create(), and transformColumnDefinition().
Definition at line 1953 of file regexp.c.
References Assert, ereport, errcode(), errmsg(), ERROR, palloc(), pfree(), pg_database_encoding_max_length(), pg_regerror(), pg_regprefix(), pg_wchar2mb_with_len(), RE_compile_and_cache(), REG_ADVANCED, REG_EXACT, REG_ICASE, REG_NOMATCH, REG_NOSUB, REG_PREFIX, regex_t, and str.
Referenced by regex_fixed_prefix().
char * text_to_cstring | ( | const text * | t | ) |
Definition at line 217 of file varlena.c.
References len, palloc(), pfree(), pg_detoast_datum_packed(), unconstify, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by array_to_text(), array_to_text_null(), binary_upgrade_add_sub_rel_state(), binary_upgrade_create_empty_extension(), binary_upgrade_replorigin_advance(), binary_upgrade_set_missing_value(), connectby_text(), connectby_text_serial(), convert_and_check_filename(), convert_any_priv_string(), convert_column_name(), convert_database_name(), convert_foreign_data_wrapper_name(), convert_function_name(), convert_language_name(), convert_schema_name(), convert_server_name(), convert_tablespace_name(), convert_type_name(), crosstab(), crosstab_hash(), cursor_to_xml(), cursor_to_xmlschema(), daitch_mokotoff(), database_to_xml(), database_to_xml_and_xmlschema(), database_to_xmlschema(), datetime_to_char_body(), dblink_cancel_query(), dblink_close(), dblink_connect(), dblink_disconnect(), dblink_error_message(), dblink_exec(), dblink_fetch(), dblink_get_notify(), dblink_is_busy(), dblink_open(), dblink_record_internal(), dblink_send_query(), deserialize_deflist(), difference(), dmetaphone(), dmetaphone_alt(), do_to_timestamp(), ExecAlterExtensionStmt(), execute_extension_script(), executeDateTimeMethod(), get_raw_page_fork(), get_raw_page_fork_1_9(), has_param_priv_byname(), has_sequence_privilege_id_name(), has_sequence_privilege_name(), has_sequence_privilege_name_name(), injection_points_attach(), injection_points_cached(), injection_points_detach(), injection_points_load(), injection_points_run(), injection_points_stats_numcalls(), injection_points_wakeup(), json_object_field(), json_object_field_text(), jsonb_set_lax(), JsonItemFromDatum(), ltree_addtext(), ltree_textadd(), NUM_cache(), parse_datetime(), parse_ident(), pg_backup_start(), pg_create_restore_point(), pg_crypt(), pg_current_logfile(), pg_get_expr_worker(), pg_get_logical_snapshot_info(), pg_get_logical_snapshot_meta(), pg_get_serial_sequence(), pg_index_column_has_property(), pg_index_has_property(), pg_indexam_has_property(), pg_input_is_valid_common(), pg_logical_emit_message_bytea(), pg_ls_replslotdir(), pg_notify(), pg_prewarm(), pg_relation_size(), pg_replication_origin_advance(), pg_replication_origin_create(), pg_replication_origin_drop(), pg_replication_origin_oid(), pg_replication_origin_progress(), pg_replication_origin_session_setup(), pg_size_bytes(), pg_split_walfile_name(), pg_stat_get_progress_info(), pg_stat_get_replication_slot(), pg_stat_have_stats(), pg_stat_reset_replication_slot(), pg_stat_reset_shared(), pg_stat_reset_slru(), pgxml_texttoxmlchar(), phraseto_tsquery_byid(), plainto_tsquery_byid(), postgres_fdw_disconnect(), query_to_xml(), query_to_xml_and_xmlschema(), query_to_xmlschema(), quote_ident(), quote_ident_cstr(), range_constructor3(), regress_setenv(), replorigin_by_oid(), schema_to_xml(), schema_to_xml_and_xmlschema(), schema_to_xmlschema(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), soundex(), table_to_xml(), table_to_xml_and_xmlschema(), table_to_xmlschema(), test_canonicalize_path(), test_predtest(), test_slru_page_write(), text2ltree(), text_concat_ws(), textToQualifiedNameList(), to_date(), to_regclass(), to_regcollation(), to_regnamespace(), to_regoper(), to_regoperator(), to_regproc(), to_regprocedure(), to_regrole(), to_regtype(), to_regtypemod(), to_tsquery_byid(), ts_stat_sql(), tsquery_rewrite_query(), tuple_data_split(), unicode_is_normalized(), unicode_normalize_func(), verify_heapam(), websearch_to_tsquery_byid(), X509_NAME_field_to_text(), xml_out_internal(), xmlconcat(), xmlpi(), xmlroot(), and xpath_table().
void text_to_cstring_buffer | ( | const text * | src, |
char * | dst, | ||
size_t | dst_len | ||
) |
Definition at line 248 of file varlena.c.
References pfree(), pg_detoast_datum_packed(), pg_mbcliplen(), unconstify, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by be_lo_export(), lo_import_internal(), lookup_timezone(), parse_sane_timezone(), pg_gen_salt(), pg_gen_salt_rounds(), timestamp_zone(), timestamptz_zone(), and timetz_zone().
Definition at line 412 of file format_type.c.
References BITS_PER_BYTE, GetDatabaseEncoding(), numeric_maximum_size(), pg_encoding_max_length(), and VARHDRSZ.
Referenced by get_typavgwidth(), and heapam_relation_needs_toast_table().
Definition at line 898 of file numutils.c.
References ereturn, errcode(), errmsg(), and typname.
Referenced by cidin(), oidin(), oidparse(), oidvectorin(), and xidin().
Definition at line 985 of file numutils.c.
References ereturn, errcode(), errmsg(), and typname.
Referenced by xid8in().
int xidComparator | ( | const void * | arg1, |
const void * | arg2 | ||
) |
Definition at line 152 of file xid.c.
References pg_cmp_u32().
Referenced by ReorderBufferCopySnap(), ReorderBufferGetCatalogChangesXacts(), SerializeTransactionState(), SnapBuildBuildSnapshot(), SnapBuildInitialSnapshot(), SnapBuildXidHasCatalogChanges(), and TransactionIdInArray().
int xidLogicalComparator | ( | const void * | arg1, |
const void * | arg2 | ||
) |
Definition at line 169 of file xid.c.
References Assert, TransactionIdIsNormal, and TransactionIdPrecedes().
Referenced by ProcArrayApplyRecoveryInfo().
|
extern |
Definition at line 337 of file ruleutils.c.
Referenced by fmtId(), main(), quote_identifier(), and setup_connection().