/* avoid including subscripting.h here */ struct SubscriptRoutines;
/* Result list element for get_op_index_interpretation */ typedefstruct OpIndexInterpretation
{
Oid opfamily_id; /* opfamily containing operator */
CompareType cmptype; /* its generic comparison type */
Oid oplefttype; /* declared left input datatype */
Oid oprighttype; /* declared right input datatype */
} OpIndexInterpretation;
/* I/O function selector for get_type_io_data */ typedefenum IOFuncSelector
{
IOFunc_input,
IOFunc_output,
IOFunc_receive,
IOFunc_send,
} IOFuncSelector;
/* Flag bits for get_attstatsslot */ #define ATTSTATSSLOT_VALUES 0x01 #define ATTSTATSSLOT_NUMBERS 0x02
/* Result struct for get_attstatsslot */ typedefstruct AttStatsSlot
{ /* Always filled: */
Oid staop; /* Actual staop for the found slot */
Oid stacoll; /* Actual collation for the found slot */ /* Filled if ATTSTATSSLOT_VALUES is specified: */
Oid valuetype; /* Actual datatype of the values */
Datum *values; /* slot's "values" array, or NULL if none */ int nvalues; /* length of values[], or 0 */ /* Filled if ATTSTATSSLOT_NUMBERS is specified: */
float4 *numbers; /* slot's "numbers" array, or NULL if none */ int nnumbers; /* length of numbers[], or 0 */
/* Remaining fields are private to get_attstatsslot/free_attstatsslot */ void *values_arr; /* palloc'd values array, if any */ void *numbers_arr; /* palloc'd numbers array, if any */
} AttStatsSlot;
/* Hook for plugins to get control in get_attavgwidth() */ typedef int32 (*get_attavgwidth_hook_type) (Oid relid, AttrNumber attnum); extern PGDLLIMPORT get_attavgwidth_hook_type get_attavgwidth_hook;
externbool op_in_opfamily(Oid opno, Oid opfamily); externint get_op_opfamily_strategy(Oid opno, Oid opfamily); extern Oid get_op_opfamily_sortfamily(Oid opno, Oid opfamily); externvoid get_op_opfamily_properties(Oid opno, Oid opfamily, bool ordering_op, int *strategy,
Oid *lefttype,
Oid *righttype); extern Oid get_opfamily_member(Oid opfamily, Oid lefttype, Oid righttype,
int16 strategy); extern Oid get_opfamily_member_for_cmptype(Oid opfamily, Oid lefttype, Oid righttype,
CompareType cmptype); externbool get_ordering_op_properties(Oid opno,
Oid *opfamily, Oid *opcintype, CompareType *cmptype); extern Oid get_equality_op_for_ordering_op(Oid opno, bool *reverse); extern Oid get_ordering_op_for_equality_op(Oid opno, bool use_lhs_type); extern List *get_mergejoin_opfamilies(Oid opno); externbool get_compatible_hash_operators(Oid opno,
Oid *lhs_opno, Oid *rhs_opno); externbool get_op_hash_functions(Oid opno,
RegProcedure *lhs_procno, RegProcedure *rhs_procno); extern List *get_op_index_interpretation(Oid opno); externbool equality_ops_are_compatible(Oid opno1, Oid opno2); externbool comparison_ops_are_compatible(Oid opno1, Oid opno2); externbool collations_agree_on_equality(Oid coll1, Oid coll2); extern Oid get_opfamily_proc(Oid opfamily, Oid lefttype, Oid righttype,
int16 procnum); externchar *get_attname(Oid relid, AttrNumber attnum, bool missing_ok); extern AttrNumber get_attnum(Oid relid, constchar *attname); externchar get_attgenerated(Oid relid, AttrNumber attnum); extern Oid get_atttype(Oid relid, AttrNumber attnum); externvoid get_atttypetypmodcoll(Oid relid, AttrNumber attnum,
Oid *typid, int32 *typmod, Oid *collid); extern Datum get_attoptions(Oid relid, int16 attnum); extern Oid get_cast_oid(Oid sourcetypeid, Oid targettypeid, bool missing_ok); externchar *get_collation_name(Oid colloid); externbool get_collation_isdeterministic(Oid colloid); externchar *get_constraint_name(Oid conoid); extern Oid get_constraint_index(Oid conoid); externchar get_constraint_type(Oid conoid);
externchar *get_language_name(Oid langoid, bool missing_ok); extern Oid get_opclass_family(Oid opclass); extern Oid get_opclass_input_type(Oid opclass); externbool get_opclass_opfamily_and_input_type(Oid opclass,
Oid *opfamily, Oid *opcintype); extern Oid get_opclass_method(Oid opclass); extern Oid get_opfamily_method(Oid opfid); externchar *get_opfamily_name(Oid opfid, bool missing_ok); extern RegProcedure get_opcode(Oid opno); externchar *get_opname(Oid opno); extern Oid get_op_rettype(Oid opno); externvoid op_input_types(Oid opno, Oid *lefttype, Oid *righttype); externbool op_mergejoinable(Oid opno, Oid inputtype); externbool op_hashjoinable(Oid opno, Oid inputtype); externbool op_strict(Oid opno); externchar op_volatile(Oid opno); extern Oid get_commutator(Oid opno); extern Oid get_negator(Oid opno); extern RegProcedure get_oprrest(Oid opno); extern RegProcedure get_oprjoin(Oid opno); externchar *get_func_name(Oid funcid); extern Oid get_func_namespace(Oid funcid); extern Oid get_func_rettype(Oid funcid); externint get_func_nargs(Oid funcid); extern Oid get_func_signature(Oid funcid, Oid **argtypes, int *nargs); extern Oid get_func_variadictype(Oid funcid); externbool get_func_retset(Oid funcid); externbool func_strict(Oid funcid); externchar func_volatile(Oid funcid); externchar func_parallel(Oid funcid); externchar get_func_prokind(Oid funcid); externbool get_func_leakproof(Oid funcid); extern RegProcedure get_func_support(Oid funcid); extern Oid get_relname_relid(constchar *relname, Oid relnamespace); externchar *get_rel_name(Oid relid); extern Oid get_rel_namespace(Oid relid); extern Oid get_rel_type_id(Oid relid); externchar get_rel_relkind(Oid relid); externbool get_rel_relispartition(Oid relid); extern Oid get_rel_tablespace(Oid relid); externchar get_rel_persistence(Oid relid); extern Oid get_rel_relam(Oid relid); extern Oid get_transform_fromsql(Oid typid, Oid langid, List *trftypes); extern Oid get_transform_tosql(Oid typid, Oid langid, List *trftypes); externbool get_typisdefined(Oid typid); extern int16 get_typlen(Oid typid); externbool get_typbyval(Oid typid); externvoid get_typlenbyval(Oid typid, int16 *typlen, bool *typbyval); externvoid get_typlenbyvalalign(Oid typid, int16 *typlen, bool *typbyval, char *typalign); extern Oid getTypeIOParam(HeapTuple typeTuple); externvoid get_type_io_data(Oid typid,
IOFuncSelector which_func,
int16 *typlen, bool *typbyval, char *typalign, char *typdelim,
Oid *typioparam,
Oid *func); externchar get_typstorage(Oid typid); extern Node *get_typdefault(Oid typid); externchar get_typtype(Oid typid); externbool type_is_rowtype(Oid typid); externbool type_is_enum(Oid typid); externbool type_is_range(Oid typid); externbool type_is_multirange(Oid typid); externvoid get_type_category_preferred(Oid typid, char *typcategory, bool *typispreferred); extern Oid get_typ_typrelid(Oid typid); extern Oid get_element_type(Oid typid); extern Oid get_array_type(Oid typid); extern Oid get_promoted_array_type(Oid typid); extern Oid get_base_element_type(Oid typid); externvoid getTypeInputInfo(Oid type, Oid *typInput, Oid *typIOParam); externvoid getTypeOutputInfo(Oid type, Oid *typOutput, bool *typIsVarlena); externvoid getTypeBinaryInputInfo(Oid type, Oid *typReceive, Oid *typIOParam); externvoid getTypeBinaryOutputInfo(Oid type, Oid *typSend, bool *typIsVarlena); extern Oid get_typmodin(Oid typid); extern Oid get_typcollation(Oid typid); externbool type_is_collatable(Oid typid); extern RegProcedure get_typsubscript(Oid typid, Oid *typelemp); externconststruct SubscriptRoutines *getSubscriptingRoutines(Oid typid,
Oid *typelemp); extern Oid getBaseType(Oid typid); extern Oid getBaseTypeAndTypmod(Oid typid, int32 *typmod); extern int32 get_typavgwidth(Oid typid, int32 typmod); extern int32 get_attavgwidth(Oid relid, AttrNumber attnum); externbool get_attstatsslot(AttStatsSlot *sslot, HeapTuple statstuple, int reqkind, Oid reqop, int flags); externvoid free_attstatsslot(AttStatsSlot *sslot); externchar *get_namespace_name(Oid nspid); externchar *get_namespace_name_or_temp(Oid nspid); extern Oid get_range_subtype(Oid rangeOid); extern Oid get_range_collation(Oid rangeOid); extern Oid get_range_multirange(Oid rangeOid); extern Oid get_multirange_range(Oid multirangeOid); extern Oid get_index_column_opclass(Oid index_oid, int attno); externbool get_index_isreplident(Oid index_oid); externbool get_index_isvalid(Oid index_oid); externbool get_index_isclustered(Oid index_oid); extern Oid get_publication_oid(constchar *pubname, bool missing_ok); externchar *get_publication_name(Oid pubid, bool missing_ok); extern Oid get_subscription_oid(constchar *subname, bool missing_ok); externchar *get_subscription_name(Oid subid, bool missing_ok);
#define type_is_array(typid) (get_element_type(typid) != InvalidOid) /* type_is_array_domain accepts both plain arrays and domains over arrays */ #define type_is_array_domain(typid) (get_base_element_type(typid) != InvalidOid)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.