| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef PG_AGGREGATE_H |
| #define PG_AGGREGATE_H |
|
|
| #include "catalog/genbki.h" |
| #include "catalog/pg_aggregate_d.h" |
|
|
| #include "catalog/objectaddress.h" |
| #include "nodes/pg_list.h" |
|
|
| |
| |
| |
| |
| |
| CATALOG(pg_aggregate,2600,AggregateRelationId) |
| { |
| |
| regproc aggfnoid BKI_LOOKUP(pg_proc); |
|
|
| |
| char aggkind BKI_DEFAULT(n); |
|
|
| |
| int16 aggnumdirectargs BKI_DEFAULT(0); |
|
|
| |
| regproc aggtransfn BKI_LOOKUP(pg_proc); |
|
|
| |
| regproc aggfinalfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| regproc aggcombinefn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| regproc aggserialfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| regproc aggdeserialfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| regproc aggmtransfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| regproc aggminvtransfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| regproc aggmfinalfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); |
|
|
| |
| bool aggfinalextra BKI_DEFAULT(f); |
|
|
| |
| bool aggmfinalextra BKI_DEFAULT(f); |
|
|
| |
| char aggfinalmodify BKI_DEFAULT(r); |
|
|
| |
| char aggmfinalmodify BKI_DEFAULT(r); |
|
|
| |
| Oid aggsortop BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_operator); |
|
|
| |
| Oid aggtranstype BKI_LOOKUP(pg_type); |
|
|
| |
| int32 aggtransspace BKI_DEFAULT(0); |
|
|
| |
| Oid aggmtranstype BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); |
|
|
| |
| int32 aggmtransspace BKI_DEFAULT(0); |
|
|
| #ifdef CATALOG_VARLEN |
|
|
| |
| text agginitval BKI_DEFAULT(_null_); |
|
|
| |
| text aggminitval BKI_DEFAULT(_null_); |
| #endif |
| } FormData_pg_aggregate; |
|
|
| |
| |
| |
| |
| |
| typedef FormData_pg_aggregate *Form_pg_aggregate; |
|
|
| DECLARE_TOAST(pg_aggregate, 4159, 4160); |
|
|
| DECLARE_UNIQUE_INDEX_PKEY(pg_aggregate_fnoid_index, 2650, AggregateFnoidIndexId, on pg_aggregate using btree(aggfnoid oid_ops)); |
|
|
| #ifdef EXPOSE_TO_CLIENT_CODE |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| #define AGGKIND_NORMAL 'n' |
| #define AGGKIND_ORDERED_SET 'o' |
| #define AGGKIND_HYPOTHETICAL 'h' |
|
|
| |
| #define AGGKIND_IS_ORDERED_SET(kind) ((kind) != AGGKIND_NORMAL) |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| #define AGGMODIFY_READ_ONLY 'r' |
| #define AGGMODIFY_SHAREABLE 's' |
| #define AGGMODIFY_READ_WRITE 'w' |
|
|
| #endif |
|
|
|
|
| extern ObjectAddress AggregateCreate(const char *aggName, |
| Oid aggNamespace, |
| bool replace, |
| char aggKind, |
| int numArgs, |
| int numDirectArgs, |
| oidvector *parameterTypes, |
| Datum allParameterTypes, |
| Datum parameterModes, |
| Datum parameterNames, |
| List *parameterDefaults, |
| Oid variadicArgType, |
| List *aggtransfnName, |
| List *aggfinalfnName, |
| List *aggcombinefnName, |
| List *aggserialfnName, |
| List *aggdeserialfnName, |
| List *aggmtransfnName, |
| List *aggminvtransfnName, |
| List *aggmfinalfnName, |
| bool finalfnExtraArgs, |
| bool mfinalfnExtraArgs, |
| char finalfnModify, |
| char mfinalfnModify, |
| List *aggsortopName, |
| Oid aggTransType, |
| int32 aggTransSpace, |
| Oid aggmTransType, |
| int32 aggmTransSpace, |
| const char *agginitval, |
| const char *aggminitval, |
| char proparallel); |
|
|
| #endif |
|
|