Branch data Line data Source code
1 : : /*
2 : : * contrib/ltree/_ltree_gist.c
3 : : *
4 : : *
5 : : * GiST support for ltree[]
6 : : * Teodor Sigaev <teodor@stack.net>
7 : : */
8 : : #include "postgres.h"
9 : :
10 : : #include "access/gist.h"
11 : : #include "access/reloptions.h"
12 : : #include "access/stratnum.h"
13 : : #include "crc32.h"
14 : : #include "ltree.h"
15 : : #include "port/pg_bitutils.h"
16 : : #include "utils/array.h"
17 : :
18 : 3 : PG_FUNCTION_INFO_V1(_ltree_compress);
19 : 3 : PG_FUNCTION_INFO_V1(_ltree_same);
20 : 3 : PG_FUNCTION_INFO_V1(_ltree_union);
21 : 3 : PG_FUNCTION_INFO_V1(_ltree_penalty);
22 : 3 : PG_FUNCTION_INFO_V1(_ltree_picksplit);
23 : 3 : PG_FUNCTION_INFO_V1(_ltree_consistent);
24 : 3 : PG_FUNCTION_INFO_V1(_ltree_gist_options);
25 : :
26 : : #define GETENTRY(vec,pos) ((ltree_gist *) DatumGetPointer((vec)->vector[(pos)].key))
27 : : #define NEXTVAL(x) ( (ltree*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) )
28 : :
29 : : #define WISH_F(a,b,c) (double)( -(double)(((a)-(b))*((a)-(b))*((a)-(b)))*(c) )
30 : :
31 : :
32 : : static void
33 : 7058 : hashing(BITVECP sign, ltree *t, int siglen)
34 : : {
35 : 7058 : int tlen = t->numlevel;
36 : 7058 : ltree_level *cur = LTREE_FIRST(t);
37 : : int hash;
38 : :
39 [ + + ]: 53466 : while (tlen > 0)
40 : : {
41 : 46408 : hash = ltree_crc32_sz(cur->name, cur->len);
42 : 46408 : AHASH(sign, hash, siglen);
43 : 46408 : cur = LEVEL_NEXT(cur);
44 : 46408 : tlen--;
45 : : }
46 : 7058 : }
47 : :
48 : : Datum
49 : 5901 : _ltree_compress(PG_FUNCTION_ARGS)
50 : : {
51 : 5901 : GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
52 : 5901 : GISTENTRY *retval = entry;
53 [ + - ]: 5901 : int siglen = LTREE_GET_ASIGLEN();
54 : :
55 [ + + ]: 5901 : if (entry->leafkey)
56 : : { /* ltree */
57 : : ltree_gist *key;
58 : 2000 : ArrayType *val = DatumGetArrayTypeP(entry->key);
59 : 2000 : int num = ArrayGetNItems(ARR_NDIM(val), ARR_DIMS(val));
60 [ - + ]: 2000 : ltree *item = (ltree *) ARR_DATA_PTR(val);
61 : :
62 [ - + ]: 2000 : if (ARR_NDIM(val) > 1)
63 [ # # ]: 0 : ereport(ERROR,
64 : : (errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
65 : : errmsg("array must be one-dimensional")));
66 [ - + ]: 2000 : if (array_contains_nulls(val))
67 [ # # ]: 0 : ereport(ERROR,
68 : : (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
69 : : errmsg("array must not contain nulls")));
70 : :
71 : 2000 : key = ltree_gist_alloc(false, NULL, siglen, NULL, NULL);
72 : :
73 [ + + ]: 9058 : while (num > 0)
74 : : {
75 : 7058 : hashing(LTG_SIGN(key), item, siglen);
76 : 7058 : num--;
77 : 7058 : item = NEXTVAL(item);
78 : : }
79 : :
80 : 2000 : retval = palloc_object(GISTENTRY);
81 : 2000 : gistentryinit(*retval, PointerGetDatum(key),
82 : : entry->rel, entry->page,
83 : : entry->offset, false);
84 : : }
85 [ + - ]: 3901 : else if (!LTG_ISALLTRUE(DatumGetPointer(entry->key)))
86 : : {
87 : : int32 i;
88 : : ltree_gist *key;
89 : 3901 : BITVECP sign = LTG_SIGN(DatumGetPointer(entry->key));
90 : :
91 [ + - ]: 3901 : ALOOPBYTE(siglen)
92 : : {
93 [ + - ]: 3901 : if ((sign[i] & 0xff) != 0xff)
94 : 3901 : PG_RETURN_POINTER(retval);
95 : : }
96 : :
97 : 0 : key = ltree_gist_alloc(true, sign, siglen, NULL, NULL);
98 : 0 : retval = palloc_object(GISTENTRY);
99 : 0 : gistentryinit(*retval, PointerGetDatum(key),
100 : : entry->rel, entry->page,
101 : : entry->offset, false);
102 : : }
103 : 2000 : PG_RETURN_POINTER(retval);
104 : : }
105 : :
106 : : Datum
107 : 7924 : _ltree_same(PG_FUNCTION_ARGS)
108 : : {
109 : 7924 : ltree_gist *a = (ltree_gist *) PG_GETARG_POINTER(0);
110 : 7924 : ltree_gist *b = (ltree_gist *) PG_GETARG_POINTER(1);
111 : 7924 : bool *result = (bool *) PG_GETARG_POINTER(2);
112 [ + - ]: 7924 : int siglen = LTREE_GET_ASIGLEN();
113 : :
114 [ - + - - ]: 7924 : if (LTG_ISALLTRUE(a) && LTG_ISALLTRUE(b))
115 : 0 : *result = true;
116 [ - + ]: 7924 : else if (LTG_ISALLTRUE(a))
117 : 0 : *result = false;
118 [ - + ]: 7924 : else if (LTG_ISALLTRUE(b))
119 : 0 : *result = false;
120 : : else
121 : : {
122 : : int32 i;
123 : 7924 : BITVECP sa = LTG_SIGN(a),
124 : 7924 : sb = LTG_SIGN(b);
125 : :
126 : 7924 : *result = true;
127 [ + + ]: 11333815 : ALOOPBYTE(siglen)
128 : : {
129 [ + + ]: 11327976 : if (sa[i] != sb[i])
130 : : {
131 : 2085 : *result = false;
132 : 2085 : break;
133 : : }
134 : : }
135 : : }
136 : 7924 : PG_RETURN_POINTER(result);
137 : : }
138 : :
139 : : static int32
140 : 15848 : unionkey(BITVECP sbase, ltree_gist *add, int siglen)
141 : : {
142 : : int32 i;
143 : 15848 : BITVECP sadd = LTG_SIGN(add);
144 : :
145 [ - + ]: 15848 : if (LTG_ISALLTRUE(add))
146 : 0 : return 1;
147 : :
148 [ + + ]: 28663072 : ALOOPBYTE(siglen)
149 : 28647224 : sbase[i] |= sadd[i];
150 : 15848 : return 0;
151 : : }
152 : :
153 : : Datum
154 : 7924 : _ltree_union(PG_FUNCTION_ARGS)
155 : : {
156 : 7924 : GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
157 : 7924 : int *size = (int *) PG_GETARG_POINTER(1);
158 [ + - ]: 7924 : int siglen = LTREE_GET_ASIGLEN();
159 : : int32 i;
160 : 7924 : ltree_gist *result = ltree_gist_alloc(false, NULL, siglen, NULL, NULL);
161 : 7924 : BITVECP base = LTG_SIGN(result);
162 : :
163 [ + + ]: 23772 : for (i = 0; i < entryvec->n; i++)
164 : : {
165 [ - + ]: 15848 : if (unionkey(base, GETENTRY(entryvec, i), siglen))
166 : : {
167 : 0 : result->flag |= LTG_ALLTRUE;
168 : 0 : SET_VARSIZE(result, LTG_HDRSIZE);
169 : 0 : break;
170 : : }
171 : : }
172 : :
173 : 7924 : *size = VARSIZE(result);
174 : :
175 : 7924 : PG_RETURN_POINTER(result);
176 : : }
177 : :
178 : : static int32
179 : 0 : sizebitvec(BITVECP sign, int siglen)
180 : : {
181 : 0 : return pg_popcount((const char *) sign, siglen);
182 : : }
183 : :
184 : : static int
185 : 136055 : hemdistsign(BITVECP a, BITVECP b, int siglen)
186 : : {
187 : : int i,
188 : : diff,
189 : 136055 : dist = 0;
190 : :
191 [ + + ]: 59979303 : ALOOPBYTE(siglen)
192 : : {
193 : 59843248 : diff = (unsigned char) (a[i] ^ b[i]);
194 : : /* Using the popcount functions here isn't likely to win */
195 : 59843248 : dist += pg_number_of_ones[diff];
196 : : }
197 : 136055 : return dist;
198 : : }
199 : :
200 : : static int
201 : 136055 : hemdist(ltree_gist *a, ltree_gist *b, int siglen)
202 : : {
203 [ - + ]: 136055 : if (LTG_ISALLTRUE(a))
204 : : {
205 [ # # ]: 0 : if (LTG_ISALLTRUE(b))
206 : 0 : return 0;
207 : : else
208 : 0 : return ASIGLENBIT(siglen) - sizebitvec(LTG_SIGN(b), siglen);
209 : : }
210 [ - + ]: 136055 : else if (LTG_ISALLTRUE(b))
211 : 0 : return ASIGLENBIT(siglen) - sizebitvec(LTG_SIGN(a), siglen);
212 : :
213 : 136055 : return hemdistsign(LTG_SIGN(a), LTG_SIGN(b), siglen);
214 : : }
215 : :
216 : :
217 : : Datum
218 : 19685 : _ltree_penalty(PG_FUNCTION_ARGS)
219 : : {
220 : 19685 : ltree_gist *origval = (ltree_gist *) DatumGetPointer(((GISTENTRY *) PG_GETARG_POINTER(0))->key);
221 : 19685 : ltree_gist *newval = (ltree_gist *) DatumGetPointer(((GISTENTRY *) PG_GETARG_POINTER(1))->key);
222 : 19685 : float *penalty = (float *) PG_GETARG_POINTER(2);
223 [ + - ]: 19685 : int siglen = LTREE_GET_ASIGLEN();
224 : :
225 : 19685 : *penalty = hemdist(origval, newval, siglen);
226 : 19685 : PG_RETURN_POINTER(penalty);
227 : : }
228 : :
229 : : typedef struct
230 : : {
231 : : OffsetNumber pos;
232 : : int32 cost;
233 : : } SPLITCOST;
234 : :
235 : : static int
236 : 8417 : comparecost(const void *a, const void *b)
237 : : {
238 : 8417 : return ((const SPLITCOST *) a)->cost - ((const SPLITCOST *) b)->cost;
239 : : }
240 : :
241 : : Datum
242 : 908 : _ltree_picksplit(PG_FUNCTION_ARGS)
243 : : {
244 : 908 : GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
245 : 908 : GIST_SPLITVEC *v = (GIST_SPLITVEC *) PG_GETARG_POINTER(1);
246 [ + - ]: 908 : int siglen = LTREE_GET_ASIGLEN();
247 : : OffsetNumber k,
248 : : j;
249 : : ltree_gist *datum_l,
250 : : *datum_r;
251 : : BITVECP union_l,
252 : : union_r;
253 : : int32 size_alpha,
254 : : size_beta;
255 : : int32 size_waste,
256 : 908 : waste = -1;
257 : : int32 nbytes;
258 : 908 : OffsetNumber seed_1 = 0,
259 : 908 : seed_2 = 0;
260 : : OffsetNumber *left,
261 : : *right;
262 : : OffsetNumber maxoff;
263 : : BITVECP ptr;
264 : : int i;
265 : : SPLITCOST *costvector;
266 : : ltree_gist *_k,
267 : : *_j;
268 : :
269 : 908 : maxoff = entryvec->n - 2;
270 : 908 : nbytes = (maxoff + 2) * sizeof(OffsetNumber);
271 : 908 : v->spl_left = (OffsetNumber *) palloc(nbytes);
272 : 908 : v->spl_right = (OffsetNumber *) palloc(nbytes);
273 : :
274 [ + + ]: 4094 : for (k = FirstOffsetNumber; k < maxoff; k = OffsetNumberNext(k))
275 : : {
276 : 3186 : _k = GETENTRY(entryvec, k);
277 [ + + ]: 103180 : for (j = OffsetNumberNext(k); j <= maxoff; j = OffsetNumberNext(j))
278 : : {
279 : 99994 : size_waste = hemdist(_k, GETENTRY(entryvec, j), siglen);
280 [ + + ]: 99994 : if (size_waste > waste)
281 : : {
282 : 1659 : waste = size_waste;
283 : 1659 : seed_1 = k;
284 : 1659 : seed_2 = j;
285 : : }
286 : : }
287 : : }
288 : :
289 : 908 : left = v->spl_left;
290 : 908 : v->spl_nleft = 0;
291 : 908 : right = v->spl_right;
292 : 908 : v->spl_nright = 0;
293 : :
294 [ + - - + ]: 908 : if (seed_1 == 0 || seed_2 == 0)
295 : : {
296 : 0 : seed_1 = 1;
297 : 0 : seed_2 = 2;
298 : : }
299 : :
300 : : /* form initial .. */
301 : 908 : datum_l = ltree_gist_alloc(LTG_ISALLTRUE(GETENTRY(entryvec, seed_1)),
302 : 908 : LTG_SIGN(GETENTRY(entryvec, seed_1)),
303 : : siglen, NULL, NULL);
304 : :
305 : 908 : datum_r = ltree_gist_alloc(LTG_ISALLTRUE(GETENTRY(entryvec, seed_2)),
306 : 908 : LTG_SIGN(GETENTRY(entryvec, seed_2)),
307 : : siglen, NULL, NULL);
308 : :
309 : 908 : maxoff = OffsetNumberNext(maxoff);
310 : : /* sort before ... */
311 : 908 : costvector = palloc_array(SPLITCOST, maxoff);
312 [ + + ]: 5910 : for (j = FirstOffsetNumber; j <= maxoff; j = OffsetNumberNext(j))
313 : : {
314 : 5002 : costvector[j - 1].pos = j;
315 : 5002 : _j = GETENTRY(entryvec, j);
316 : 5002 : size_alpha = hemdist(datum_l, _j, siglen);
317 : 5002 : size_beta = hemdist(datum_r, _j, siglen);
318 : 5002 : costvector[j - 1].cost = abs(size_alpha - size_beta);
319 : : }
320 : 908 : qsort(costvector, maxoff, sizeof(SPLITCOST), comparecost);
321 : :
322 : 908 : union_l = LTG_SIGN(datum_l);
323 : 908 : union_r = LTG_SIGN(datum_r);
324 : :
325 [ + + ]: 5910 : for (k = 0; k < maxoff; k++)
326 : : {
327 : 5002 : j = costvector[k].pos;
328 [ + + ]: 5002 : if (j == seed_1)
329 : : {
330 : 908 : *left++ = j;
331 : 908 : v->spl_nleft++;
332 : 908 : continue;
333 : : }
334 [ + + ]: 4094 : else if (j == seed_2)
335 : : {
336 : 908 : *right++ = j;
337 : 908 : v->spl_nright++;
338 : 908 : continue;
339 : : }
340 : 3186 : _j = GETENTRY(entryvec, j);
341 : 3186 : size_alpha = hemdist(datum_l, _j, siglen);
342 : 3186 : size_beta = hemdist(datum_r, _j, siglen);
343 : :
344 [ + + ]: 3186 : if (size_alpha < size_beta + WISH_F(v->spl_nleft, v->spl_nright, 0.00001))
345 : : {
346 [ + - - + ]: 1523 : if (LTG_ISALLTRUE(datum_l) || LTG_ISALLTRUE(_j))
347 : : {
348 [ # # ]: 0 : if (!LTG_ISALLTRUE(datum_l))
349 : 0 : memset(union_l, 0xff, siglen);
350 : : }
351 : : else
352 : : {
353 : 1523 : ptr = LTG_SIGN(_j);
354 [ + + ]: 1698851 : ALOOPBYTE(siglen)
355 : 1697328 : union_l[i] |= ptr[i];
356 : : }
357 : 1523 : *left++ = j;
358 : 1523 : v->spl_nleft++;
359 : : }
360 : : else
361 : : {
362 [ + - - + ]: 1663 : if (LTG_ISALLTRUE(datum_r) || LTG_ISALLTRUE(_j))
363 : : {
364 [ # # ]: 0 : if (!LTG_ISALLTRUE(datum_r))
365 : 0 : memset(union_r, 0xff, siglen);
366 : : }
367 : : else
368 : : {
369 : 1663 : ptr = LTG_SIGN(_j);
370 [ + + ]: 1978359 : ALOOPBYTE(siglen)
371 : 1976696 : union_r[i] |= ptr[i];
372 : : }
373 : 1663 : *right++ = j;
374 : 1663 : v->spl_nright++;
375 : : }
376 : : }
377 : :
378 : 908 : *right = *left = FirstOffsetNumber;
379 : :
380 : 908 : v->spl_ldatum = PointerGetDatum(datum_l);
381 : 908 : v->spl_rdatum = PointerGetDatum(datum_r);
382 : :
383 : 908 : PG_RETURN_POINTER(v);
384 : : }
385 : :
386 : : static bool
387 : 2595 : gist_te(ltree_gist *key, ltree *query, int siglen)
388 : : {
389 : 2595 : ltree_level *curq = LTREE_FIRST(query);
390 : 2595 : BITVECP sign = LTG_SIGN(key);
391 : 2595 : int qlen = query->numlevel;
392 : : unsigned int hv;
393 : :
394 [ - + ]: 2595 : if (LTG_ISALLTRUE(key))
395 : 0 : return true;
396 : :
397 [ + + ]: 8703 : while (qlen > 0)
398 : : {
399 : 6667 : hv = ltree_crc32_sz(curq->name, curq->len);
400 [ + + ]: 6667 : if (!GETBIT(sign, AHASHVAL(hv, siglen)))
401 : 559 : return false;
402 : 6108 : curq = LEVEL_NEXT(curq);
403 : 6108 : qlen--;
404 : : }
405 : :
406 : 2036 : return true;
407 : : }
408 : :
409 : : typedef struct LtreeSignature
410 : : {
411 : : BITVECP sign;
412 : : int siglen;
413 : : } LtreeSignature;
414 : :
415 : : static bool
416 : 3872 : checkcondition_bit(void *cxt, ITEM *val)
417 : : {
418 : 3872 : LtreeSignature *sig = cxt;
419 : :
420 [ + - ]: 3872 : return (FLG_CANLOOKSIGN(val->flag)) ? GETBIT(sig->sign, AHASHVAL(val->val, sig->siglen)) : true;
421 : : }
422 : :
423 : : static bool
424 : 2290 : gist_qtxt(ltree_gist *key, ltxtquery *query, int siglen)
425 : : {
426 : : LtreeSignature sig;
427 : :
428 [ - + ]: 2290 : if (LTG_ISALLTRUE(key))
429 : 0 : return true;
430 : :
431 : 2290 : sig.sign = LTG_SIGN(key);
432 : 2290 : sig.siglen = siglen;
433 : :
434 : 2290 : return ltree_execute(GETQUERY(query),
435 : : &sig, false,
436 : : checkcondition_bit);
437 : : }
438 : :
439 : : static bool
440 : 15385 : gist_qe(ltree_gist *key, lquery *query, int siglen)
441 : : {
442 : 15385 : lquery_level *curq = LQUERY_FIRST(query);
443 : 15385 : BITVECP sign = LTG_SIGN(key);
444 : 15385 : int qlen = query->numlevel;
445 : :
446 [ - + ]: 15385 : if (LTG_ISALLTRUE(key))
447 : 0 : return true;
448 : :
449 [ + + ]: 46578 : while (qlen > 0)
450 : : {
451 [ + + + - ]: 37312 : if (curq->numvar && LQL_CANLOOKSIGN(curq))
452 : : {
453 : 26069 : bool isexist = false;
454 : 26069 : int vlen = curq->numvar;
455 : 26069 : lquery_variant *curv = LQL_FIRST(curq);
456 : :
457 [ + + ]: 32188 : while (vlen > 0)
458 : : {
459 [ + + ]: 26069 : if (GETBIT(sign, AHASHVAL(curv->val, siglen)))
460 : : {
461 : 19950 : isexist = true;
462 : 19950 : break;
463 : : }
464 : 6119 : curv = LVAR_NEXT(curv);
465 : 6119 : vlen--;
466 : : }
467 [ + + ]: 26069 : if (!isexist)
468 : 6119 : return false;
469 : : }
470 : :
471 : 31193 : curq = LQL_NEXT(curq);
472 : 31193 : qlen--;
473 : : }
474 : :
475 : 9266 : return true;
476 : : }
477 : :
478 : : static bool
479 : 2432 : _arrq_cons(ltree_gist *key, ArrayType *_query, int siglen)
480 : : {
481 [ - + ]: 2432 : lquery *query = (lquery *) ARR_DATA_PTR(_query);
482 : 2432 : int num = ArrayGetNItems(ARR_NDIM(_query), ARR_DIMS(_query));
483 : :
484 [ - + ]: 2432 : if (ARR_NDIM(_query) > 1)
485 [ # # ]: 0 : ereport(ERROR,
486 : : (errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
487 : : errmsg("array must be one-dimensional")));
488 [ - + ]: 2432 : if (array_contains_nulls(_query))
489 [ # # ]: 0 : ereport(ERROR,
490 : : (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
491 : : errmsg("array must not contain nulls")));
492 : :
493 [ + + ]: 4441 : while (num > 0)
494 : : {
495 [ + + ]: 3548 : if (gist_qe(key, query, siglen))
496 : 1539 : return true;
497 : 2009 : num--;
498 : 2009 : query = (lquery *) NEXTVAL(query);
499 : : }
500 : 893 : return false;
501 : : }
502 : :
503 : : Datum
504 : 19154 : _ltree_consistent(PG_FUNCTION_ARGS)
505 : : {
506 : 19154 : GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
507 : 19154 : void *query = PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
508 : 19154 : StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
509 : : #ifdef NOT_USED
510 : : Oid subtype = PG_GETARG_OID(3);
511 : : #endif
512 : 19154 : bool *recheck = (bool *) PG_GETARG_POINTER(4);
513 [ + - ]: 19154 : int siglen = LTREE_GET_ASIGLEN();
514 : 19154 : ltree_gist *key = (ltree_gist *) DatumGetPointer(entry->key);
515 : 19154 : bool res = false;
516 : :
517 : : /* All cases served by this function are inexact */
518 : 19154 : *recheck = true;
519 : :
520 [ + + + + : 19154 : switch (strategy)
- ]
521 : : {
522 : 2595 : case 10:
523 : : case 11:
524 : 2595 : res = gist_te(key, (ltree *) query, siglen);
525 : 2595 : break;
526 : 11837 : case 12:
527 : : case 13:
528 : 11837 : res = gist_qe(key, (lquery *) query, siglen);
529 : 11837 : break;
530 : 2290 : case 14:
531 : : case 15:
532 : 2290 : res = gist_qtxt(key, (ltxtquery *) query, siglen);
533 : 2290 : break;
534 : 2432 : case 16:
535 : : case 17:
536 : 2432 : res = _arrq_cons(key, (ArrayType *) query, siglen);
537 : 2432 : break;
538 : 0 : default:
539 : : /* internal error */
540 [ # # ]: 0 : elog(ERROR, "unrecognized StrategyNumber: %d", strategy);
541 : : }
542 [ - + ]: 19154 : PG_FREE_IF_COPY(query, 1);
543 : 19154 : PG_RETURN_BOOL(res);
544 : : }
545 : :
546 : : Datum
547 : 10 : _ltree_gist_options(PG_FUNCTION_ARGS)
548 : : {
549 : 10 : local_relopts *relopts = (local_relopts *) PG_GETARG_POINTER(0);
550 : :
551 : 10 : init_local_reloptions(relopts, sizeof(LtreeGistOptions));
552 : 10 : add_local_int_reloption(relopts, "siglen", "signature length",
553 : : LTREE_ASIGLEN_DEFAULT, 1, LTREE_ASIGLEN_MAX,
554 : : offsetof(LtreeGistOptions, siglen));
555 : :
556 : 10 : PG_RETURN_VOID();
557 : : }
|