|
36 | 36 | */
|
37 | 37 | #define PROCNUM_BASE 11
|
38 | 38 |
|
39 |
| -static FmgrInfo *minmax_get_procinfo(BrinDesc *bdesc, uint16 attno, |
40 |
| - uint16 procnum); |
41 |
| - |
42 |
| -PG_FUNCTION_INFO_V1(minmaxOpcInfo); |
43 |
| -PG_FUNCTION_INFO_V1(minmaxAddValue); |
44 |
| -PG_FUNCTION_INFO_V1(minmaxConsistent); |
45 |
| -PG_FUNCTION_INFO_V1(minmaxUnion); |
46 |
| - |
47 |
| - |
48 | 39 | typedef struct MinmaxOpaque
|
49 | 40 | {
|
50 | 41 | FmgrInfo operators[MINMAX_NUM_PROCNUMS];
|
51 | 42 | bool inited[MINMAX_NUM_PROCNUMS];
|
52 | 43 | } MinmaxOpaque;
|
53 | 44 |
|
| 45 | +static FmgrInfo *minmax_get_procinfo(BrinDesc *bdesc, uint16 attno, |
| 46 | + uint16 procnum); |
| 47 | + |
| 48 | + |
54 | 49 | Datum
|
55 |
| -minmaxOpcInfo(PG_FUNCTION_ARGS) |
| 50 | +brin_minmax_opcinfo(PG_FUNCTION_ARGS) |
56 | 51 | {
|
57 | 52 | Oid typoid = PG_GETARG_OID(0);
|
58 | 53 | BrinOpcInfo *result;
|
@@ -81,7 +76,7 @@ minmaxOpcInfo(PG_FUNCTION_ARGS)
|
81 | 76 | * return false and do not modify in this case.
|
82 | 77 | */
|
83 | 78 | Datum
|
84 |
| -minmaxAddValue(PG_FUNCTION_ARGS) |
| 79 | +brin_minmax_add_value(PG_FUNCTION_ARGS) |
85 | 80 | {
|
86 | 81 | BrinDesc *bdesc = (BrinDesc *) PG_GETARG_POINTER(0);
|
87 | 82 | BrinValues *column = (BrinValues *) PG_GETARG_POINTER(1);
|
@@ -159,7 +154,7 @@ minmaxAddValue(PG_FUNCTION_ARGS)
|
159 | 154 | * values. Return true if so, false otherwise.
|
160 | 155 | */
|
161 | 156 | Datum
|
162 |
| -minmaxConsistent(PG_FUNCTION_ARGS) |
| 157 | +brin_minmax_consistent(PG_FUNCTION_ARGS) |
163 | 158 | {
|
164 | 159 | BrinDesc *bdesc = (BrinDesc *) PG_GETARG_POINTER(0);
|
165 | 160 | BrinValues *column = (BrinValues *) PG_GETARG_POINTER(1);
|
@@ -249,7 +244,7 @@ minmaxConsistent(PG_FUNCTION_ARGS)
|
249 | 244 | * values contained in both. The second one is untouched.
|
250 | 245 | */
|
251 | 246 | Datum
|
252 |
| -minmaxUnion(PG_FUNCTION_ARGS) |
| 247 | +brin_minmax_union(PG_FUNCTION_ARGS) |
253 | 248 | {
|
254 | 249 | BrinDesc *bdesc = (BrinDesc *) PG_GETARG_POINTER(0);
|
255 | 250 | BrinValues *col_a = (BrinValues *) PG_GETARG_POINTER(1);
|
|
0 commit comments