Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7d6d2c4

Browse files
committed
Drop opcintype from index AM strategy translation API
The type argument wasn't actually really necessary. It was a remnant of converting the API of the gist strategy translation from using opclass to using opfamily+opcintype (commits c09e5a6, 622f678). For looking up the gist translation function, we used the convention "amproclefttype = amprocrighttype = opclass's opcintype" (see pg_amproc.h). But each operator family should only have one translation function, and getting the right type for the lookup is sometimes cumbersome and fragile, so this is all unnecessarily complicated. To simplify this, change the gist stategy support procedure to take "any", "any" as argument. (This is arbitrary but seems intuitive. The alternative of using InvalidOid as argument(s) upsets various DDL commands, so it's not practical.) Then we don't need opcintype for the lookup, and we can remove it from all the API layers introduced by commit c09e5a6. This also adds some more documentation about the correct signature of the gist support function and adds more checks in gistvalidate(). This was previously underspecified. (It relied implicitly on convention mentioned above.) Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
1 parent 7202d72 commit 7d6d2c4

File tree

18 files changed

+72
-67
lines changed

18 files changed

+72
-67
lines changed

contrib/btree_gist/btree_gist--1.7--1.8.sql

+26-26
Original file line numberDiff line numberDiff line change
@@ -9,79 +9,79 @@ AS 'MODULE_PATHNAME'
99
LANGUAGE C IMMUTABLE PARALLEL SAFE STRICT;
1010

1111
ALTER OPERATOR FAMILY gist_oid_ops USING gist ADD
12-
FUNCTION 12 (oid, oid) gist_stratnum_btree (int) ;
12+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
1313

1414
ALTER OPERATOR FAMILY gist_int2_ops USING gist ADD
15-
FUNCTION 12 (int2, int2) gist_stratnum_btree (int) ;
15+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
1616

1717
ALTER OPERATOR FAMILY gist_int4_ops USING gist ADD
18-
FUNCTION 12 (int4, int4) gist_stratnum_btree (int) ;
18+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
1919

2020
ALTER OPERATOR FAMILY gist_int8_ops USING gist ADD
21-
FUNCTION 12 (int8, int8) gist_stratnum_btree (int) ;
21+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
2222

2323
ALTER OPERATOR FAMILY gist_float4_ops USING gist ADD
24-
FUNCTION 12 (float4, float4) gist_stratnum_btree (int) ;
24+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
2525

2626
ALTER OPERATOR FAMILY gist_float8_ops USING gist ADD
27-
FUNCTION 12 (float8, float8) gist_stratnum_btree (int) ;
27+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
2828

2929
ALTER OPERATOR FAMILY gist_timestamp_ops USING gist ADD
30-
FUNCTION 12 (timestamp, timestamp) gist_stratnum_btree (int) ;
30+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
3131

3232
ALTER OPERATOR FAMILY gist_timestamptz_ops USING gist ADD
33-
FUNCTION 12 (timestamptz, timestamptz) gist_stratnum_btree (int) ;
33+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
3434

3535
ALTER OPERATOR FAMILY gist_time_ops USING gist ADD
36-
FUNCTION 12 (time, time) gist_stratnum_btree (int) ;
36+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
3737

3838
ALTER OPERATOR FAMILY gist_date_ops USING gist ADD
39-
FUNCTION 12 (date, date) gist_stratnum_btree (int) ;
39+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
4040

4141
ALTER OPERATOR FAMILY gist_interval_ops USING gist ADD
42-
FUNCTION 12 (interval, interval) gist_stratnum_btree (int) ;
42+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
4343

4444
ALTER OPERATOR FAMILY gist_cash_ops USING gist ADD
45-
FUNCTION 12 (money, money) gist_stratnum_btree (int) ;
45+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
4646

4747
ALTER OPERATOR FAMILY gist_macaddr_ops USING gist ADD
48-
FUNCTION 12 (macaddr, macaddr) gist_stratnum_btree (int) ;
48+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
4949

5050
ALTER OPERATOR FAMILY gist_text_ops USING gist ADD
51-
FUNCTION 12 (text, text) gist_stratnum_btree (int) ;
51+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
5252

5353
ALTER OPERATOR FAMILY gist_bpchar_ops USING gist ADD
54-
FUNCTION 12 (bpchar, bpchar) gist_stratnum_btree (int) ;
54+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
5555

5656
ALTER OPERATOR FAMILY gist_bytea_ops USING gist ADD
57-
FUNCTION 12 (bytea, bytea) gist_stratnum_btree (int) ;
57+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
5858

5959
ALTER OPERATOR FAMILY gist_numeric_ops USING gist ADD
60-
FUNCTION 12 (numeric, numeric) gist_stratnum_btree (int) ;
60+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
6161

6262
ALTER OPERATOR FAMILY gist_bit_ops USING gist ADD
63-
FUNCTION 12 (bit, bit) gist_stratnum_btree (int) ;
63+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
6464

6565
ALTER OPERATOR FAMILY gist_vbit_ops USING gist ADD
66-
FUNCTION 12 (varbit, varbit) gist_stratnum_btree (int) ;
66+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
6767

6868
ALTER OPERATOR FAMILY gist_inet_ops USING gist ADD
69-
FUNCTION 12 (inet, inet) gist_stratnum_btree (int) ;
69+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
7070

7171
ALTER OPERATOR FAMILY gist_cidr_ops USING gist ADD
72-
FUNCTION 12 (cidr, cidr) gist_stratnum_btree (int) ;
72+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
7373

7474
ALTER OPERATOR FAMILY gist_timetz_ops USING gist ADD
75-
FUNCTION 12 (timetz, timetz) gist_stratnum_btree (int) ;
75+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
7676

7777
ALTER OPERATOR FAMILY gist_uuid_ops USING gist ADD
78-
FUNCTION 12 (uuid, uuid) gist_stratnum_btree (int) ;
78+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
7979

8080
ALTER OPERATOR FAMILY gist_macaddr8_ops USING gist ADD
81-
FUNCTION 12 (macaddr8, macaddr8) gist_stratnum_btree (int) ;
81+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
8282

8383
ALTER OPERATOR FAMILY gist_enum_ops USING gist ADD
84-
FUNCTION 12 (anyenum, anyenum) gist_stratnum_btree (int) ;
84+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;
8585

8686
ALTER OPERATOR FAMILY gist_bool_ops USING gist ADD
87-
FUNCTION 12 (bool, bool) gist_stratnum_btree (int) ;
87+
FUNCTION 12 ("any", "any") gist_stratnum_btree (int) ;

doc/src/sgml/gist.sgml

+6
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,12 @@ CREATE OR REPLACE FUNCTION my_stratnum(integer)
11971197
RETURNS smallint
11981198
AS 'MODULE_PATHNAME'
11991199
LANGUAGE C STRICT;
1200+
</programlisting>
1201+
1202+
And the operator family registration must look like this:
1203+
<programlisting>
1204+
ALTER OPERATOR FAMILY my_opfamily USING gist ADD
1205+
FUNCTION 12 ("any", "any") my_stratnum(int);
12001206
</programlisting>
12011207
</para>
12021208

src/backend/access/gist/gistutil.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1095,13 +1095,13 @@ gist_stratnum_common(PG_FUNCTION_ARGS)
10951095
* Returns InvalidStrategy if the function is not defined.
10961096
*/
10971097
StrategyNumber
1098-
gisttranslatecmptype(CompareType cmptype, Oid opfamily, Oid opcintype)
1098+
gisttranslatecmptype(CompareType cmptype, Oid opfamily)
10991099
{
11001100
Oid funcid;
11011101
Datum result;
11021102

11031103
/* Check whether the function is provided. */
1104-
funcid = get_opfamily_proc(opfamily, opcintype, opcintype, GIST_STRATNUM_PROC);
1104+
funcid = get_opfamily_proc(opfamily, ANYOID, ANYOID, GIST_STRATNUM_PROC);
11051105
if (!OidIsValid(funcid))
11061106
return InvalidStrategy;
11071107

src/backend/access/gist/gistvalidate.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ gistvalidate(Oid opclassoid)
140140
break;
141141
case GIST_STRATNUM_PROC:
142142
ok = check_amproc_signature(procform->amproc, INT2OID, true,
143-
1, 1, INT4OID);
143+
1, 1, INT4OID) &&
144+
procform->amproclefttype == ANYOID &&
145+
procform->amprocrighttype == ANYOID;
144146
break;
145147
default:
146148
ereport(INFO,

src/backend/access/hash/hash.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -927,15 +927,15 @@ hashbucketcleanup(Relation rel, Bucket cur_bucket, Buffer bucket_buf,
927927
}
928928

929929
CompareType
930-
hashtranslatestrategy(StrategyNumber strategy, Oid opfamily, Oid opcintype)
930+
hashtranslatestrategy(StrategyNumber strategy, Oid opfamily)
931931
{
932932
if (strategy == HTEqualStrategyNumber)
933933
return COMPARE_EQ;
934934
return COMPARE_INVALID;
935935
}
936936

937937
StrategyNumber
938-
hashtranslatecmptype(CompareType cmptype, Oid opfamily, Oid opcintype)
938+
hashtranslatecmptype(CompareType cmptype, Oid opfamily)
939939
{
940940
if (cmptype == COMPARE_EQ)
941941
return HTEqualStrategyNumber;

src/backend/access/index/amapi.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ GetIndexAmRoutineByAmId(Oid amoid, bool noerror)
115115
* true, just return COMPARE_INVALID.
116116
*/
117117
CompareType
118-
IndexAmTranslateStrategy(StrategyNumber strategy, Oid amoid, Oid opfamily, Oid opcintype, bool missing_ok)
118+
IndexAmTranslateStrategy(StrategyNumber strategy, Oid amoid, Oid opfamily, bool missing_ok)
119119
{
120120
CompareType result;
121121
IndexAmRoutine *amroutine;
122122

123123
amroutine = GetIndexAmRoutineByAmId(amoid, false);
124124
if (amroutine->amtranslatestrategy)
125-
result = amroutine->amtranslatestrategy(strategy, opfamily, opcintype);
125+
result = amroutine->amtranslatestrategy(strategy, opfamily);
126126
else
127127
result = COMPARE_INVALID;
128128

@@ -140,14 +140,14 @@ IndexAmTranslateStrategy(StrategyNumber strategy, Oid amoid, Oid opfamily, Oid o
140140
* to the given cmptype. If true, just return InvalidStrategy.
141141
*/
142142
StrategyNumber
143-
IndexAmTranslateCompareType(CompareType cmptype, Oid amoid, Oid opfamily, Oid opcintype, bool missing_ok)
143+
IndexAmTranslateCompareType(CompareType cmptype, Oid amoid, Oid opfamily, bool missing_ok)
144144
{
145145
StrategyNumber result;
146146
IndexAmRoutine *amroutine;
147147

148148
amroutine = GetIndexAmRoutineByAmId(amoid, false);
149149
if (amroutine->amtranslatecmptype)
150-
result = amroutine->amtranslatecmptype(cmptype, opfamily, opcintype);
150+
result = amroutine->amtranslatecmptype(cmptype, opfamily);
151151
else
152152
result = InvalidStrategy;
153153

src/backend/access/nbtree/nbtree.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ btgettreeheight(Relation rel)
15131513
}
15141514

15151515
CompareType
1516-
bttranslatestrategy(StrategyNumber strategy, Oid opfamily, Oid opcintype)
1516+
bttranslatestrategy(StrategyNumber strategy, Oid opfamily)
15171517
{
15181518
switch (strategy)
15191519
{
@@ -1533,7 +1533,7 @@ bttranslatestrategy(StrategyNumber strategy, Oid opfamily, Oid opcintype)
15331533
}
15341534

15351535
StrategyNumber
1536-
bttranslatecmptype(CompareType cmptype, Oid opfamily, Oid opcintype)
1536+
bttranslatecmptype(CompareType cmptype, Oid opfamily)
15371537
{
15381538
switch (cmptype)
15391539
{

src/backend/catalog/index.c

-1
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,6 @@ BuildSpeculativeIndexInfo(Relation index, IndexInfo *ii)
26922692
IndexAmTranslateCompareType(COMPARE_EQ,
26932693
index->rd_rel->relam,
26942694
index->rd_opfamily[i],
2695-
index->rd_opcintype[i],
26962695
false);
26972696
ii->ii_UniqueOps[i] =
26982697
get_opfamily_member(index->rd_opfamily[i],

src/backend/commands/indexcmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ GetOperatorFromCompareType(Oid opclass, Oid rhstype, CompareType cmptype,
24682468
/*
24692469
* Ask the index AM to translate to its internal stratnum
24702470
*/
2471-
*strat = IndexAmTranslateCompareType(cmptype, amid, opfamily, opcintype, true);
2471+
*strat = IndexAmTranslateCompareType(cmptype, amid, opfamily, true);
24722472
if (*strat == InvalidStrategy)
24732473
ereport(ERROR,
24742474
errcode(ERRCODE_UNDEFINED_OBJECT),

src/backend/commands/tablecmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10113,7 +10113,7 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
1011310113
*/
1011410114
for_overlaps = with_period && i == numpks - 1;
1011510115
cmptype = for_overlaps ? COMPARE_OVERLAP : COMPARE_EQ;
10116-
eqstrategy = IndexAmTranslateCompareType(cmptype, amid, opfamily, opcintype, true);
10116+
eqstrategy = IndexAmTranslateCompareType(cmptype, amid, opfamily, true);
1011710117
if (eqstrategy == InvalidStrategy)
1011810118
ereport(ERROR,
1011910119
errcode(ERRCODE_UNDEFINED_OBJECT),

src/backend/executor/execReplication.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ build_replindex_scan_key(ScanKey skey, Relation rel, Relation idxrel,
9191
*/
9292
optype = get_opclass_input_type(opclass->values[index_attoff]);
9393
opfamily = get_opclass_family(opclass->values[index_attoff]);
94-
eq_strategy = IndexAmTranslateCompareType(COMPARE_EQ, idxrel->rd_rel->relam, opfamily, optype, false);
94+
eq_strategy = IndexAmTranslateCompareType(COMPARE_EQ, idxrel->rd_rel->relam, opfamily, false);
9595
operator = get_opfamily_member(opfamily, optype,
9696
optype,
9797
eq_strategy);

src/backend/replication/logical/relation.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,9 @@ IsIndexUsableForReplicaIdentityFull(Relation idxrel, AttrMap *attrmap)
837837
for (int i = 0; i < idxrel->rd_index->indnkeyatts; i++)
838838
{
839839
Oid opfamily;
840-
Oid opcintype;
841840

842-
if (!get_opclass_opfamily_and_input_type(indclass->values[i], &opfamily, &opcintype))
843-
return false;
844-
if (IndexAmTranslateCompareType(COMPARE_EQ, idxrel->rd_rel->relam, opfamily, opcintype, true) == InvalidStrategy)
841+
opfamily = get_opclass_family(indclass->values[i]);
842+
if (IndexAmTranslateCompareType(COMPARE_EQ, idxrel->rd_rel->relam, opfamily, true) == InvalidStrategy)
845843
return false;
846844
}
847845

src/include/access/amapi.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ typedef struct OpFamilyMember
102102
*/
103103

104104
/* translate AM-specific strategies to general operator types */
105-
typedef CompareType (*amtranslate_strategy_function) (StrategyNumber strategy, Oid opfamily, Oid opcintype);
105+
typedef CompareType (*amtranslate_strategy_function) (StrategyNumber strategy, Oid opfamily);
106106

107107
/* translate general operator types to AM-specific strategies */
108-
typedef StrategyNumber (*amtranslate_cmptype_function) (CompareType cmptype, Oid opfamily, Oid opcintype);
108+
typedef StrategyNumber (*amtranslate_cmptype_function) (CompareType cmptype, Oid opfamily);
109109

110110
/* build new index */
111111
typedef IndexBuildResult *(*ambuild_function) (Relation heapRelation,
@@ -319,7 +319,7 @@ typedef struct IndexAmRoutine
319319
/* Functions in access/index/amapi.c */
320320
extern IndexAmRoutine *GetIndexAmRoutine(Oid amhandler);
321321
extern IndexAmRoutine *GetIndexAmRoutineByAmId(Oid amoid, bool noerror);
322-
extern CompareType IndexAmTranslateStrategy(StrategyNumber strategy, Oid amoid, Oid opfamily, Oid opcintype, bool missing_ok);
323-
extern StrategyNumber IndexAmTranslateCompareType(CompareType cmptype, Oid amoid, Oid opfamily, Oid opcintype, bool missing_ok);
322+
extern CompareType IndexAmTranslateStrategy(StrategyNumber strategy, Oid amoid, Oid opfamily, bool missing_ok);
323+
extern StrategyNumber IndexAmTranslateCompareType(CompareType cmptype, Oid amoid, Oid opfamily, bool missing_ok);
324324

325325
#endif /* AMAPI_H */

src/include/access/gist.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,6 @@ typedef struct
248248
do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
249249
(e).offset = (o); (e).leafkey = (l); } while (0)
250250

251-
extern StrategyNumber gisttranslatecmptype(CompareType cmptype, Oid opfamily, Oid opcintype);
251+
extern StrategyNumber gisttranslatecmptype(CompareType cmptype, Oid opfamily);
252252

253253
#endif /* GIST_H */

src/include/access/hash.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ extern void hashadjustmembers(Oid opfamilyoid,
387387
List *operators,
388388
List *functions);
389389

390-
extern CompareType hashtranslatestrategy(StrategyNumber strategy, Oid opfamily, Oid opcintype);
391-
extern StrategyNumber hashtranslatecmptype(CompareType cmptype, Oid opfamily, Oid opcintype);
390+
extern CompareType hashtranslatestrategy(StrategyNumber strategy, Oid opfamily);
391+
extern StrategyNumber hashtranslatecmptype(CompareType cmptype, Oid opfamily);
392392

393393
/* private routines */
394394

src/include/access/nbtree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,8 @@ extern IndexBulkDeleteResult *btvacuumcleanup(IndexVacuumInfo *info,
11831183
extern bool btcanreturn(Relation index, int attno);
11841184
extern int btgettreeheight(Relation rel);
11851185

1186-
extern CompareType bttranslatestrategy(StrategyNumber strategy, Oid opfamily, Oid opcintype);
1187-
extern StrategyNumber bttranslatecmptype(CompareType cmptype, Oid opfamily, Oid opcintype);
1186+
extern CompareType bttranslatestrategy(StrategyNumber strategy, Oid opfamily);
1187+
extern StrategyNumber bttranslatecmptype(CompareType cmptype, Oid opfamily);
11881188

11891189
/*
11901190
* prototypes for internal functions in nbtree.c

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@
5757
*/
5858

5959
/* yyyymmddN */
60-
#define CATALOG_VERSION_NO 202502112
60+
#define CATALOG_VERSION_NO 202502211
6161

6262
#endif

src/include/catalog/pg_amproc.dat

+12-12
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@
506506
amprocrighttype => 'box', amprocnum => '7', amproc => 'gist_box_same' },
507507
{ amprocfamily => 'gist/box_ops', amproclefttype => 'box',
508508
amprocrighttype => 'box', amprocnum => '8', amproc => 'gist_box_distance' },
509-
{ amprocfamily => 'gist/box_ops', amproclefttype => 'box',
510-
amprocrighttype => 'box', amprocnum => '12',
509+
{ amprocfamily => 'gist/box_ops', amproclefttype => 'any',
510+
amprocrighttype => 'any', amprocnum => '12',
511511
amproc => 'gist_stratnum_common' },
512512
{ amprocfamily => 'gist/poly_ops', amproclefttype => 'polygon',
513513
amprocrighttype => 'polygon', amprocnum => '1',
@@ -528,8 +528,8 @@
528528
{ amprocfamily => 'gist/poly_ops', amproclefttype => 'polygon',
529529
amprocrighttype => 'polygon', amprocnum => '8',
530530
amproc => 'gist_poly_distance' },
531-
{ amprocfamily => 'gist/poly_ops', amproclefttype => 'polygon',
532-
amprocrighttype => 'polygon', amprocnum => '12',
531+
{ amprocfamily => 'gist/poly_ops', amproclefttype => 'any',
532+
amprocrighttype => 'any', amprocnum => '12',
533533
amproc => 'gist_stratnum_common' },
534534
{ amprocfamily => 'gist/circle_ops', amproclefttype => 'circle',
535535
amprocrighttype => 'circle', amprocnum => '1',
@@ -549,8 +549,8 @@
549549
{ amprocfamily => 'gist/circle_ops', amproclefttype => 'circle',
550550
amprocrighttype => 'circle', amprocnum => '8',
551551
amproc => 'gist_circle_distance' },
552-
{ amprocfamily => 'gist/circle_ops', amproclefttype => 'circle',
553-
amprocrighttype => 'circle', amprocnum => '12',
552+
{ amprocfamily => 'gist/circle_ops', amproclefttype => 'any',
553+
amprocrighttype => 'any', amprocnum => '12',
554554
amproc => 'gist_stratnum_common' },
555555
{ amprocfamily => 'gist/tsvector_ops', amproclefttype => 'tsvector',
556556
amprocrighttype => 'tsvector', amprocnum => '1',
@@ -606,8 +606,8 @@
606606
{ amprocfamily => 'gist/range_ops', amproclefttype => 'anyrange',
607607
amprocrighttype => 'anyrange', amprocnum => '7',
608608
amproc => 'range_gist_same' },
609-
{ amprocfamily => 'gist/range_ops', amproclefttype => 'anyrange',
610-
amprocrighttype => 'anyrange', amprocnum => '12',
609+
{ amprocfamily => 'gist/range_ops', amproclefttype => 'any',
610+
amprocrighttype => 'any', amprocnum => '12',
611611
amproc => 'gist_stratnum_common' },
612612
{ amprocfamily => 'gist/network_ops', amproclefttype => 'inet',
613613
amprocrighttype => 'inet', amprocnum => '1',
@@ -625,8 +625,8 @@
625625
amprocrighttype => 'inet', amprocnum => '7', amproc => 'inet_gist_same' },
626626
{ amprocfamily => 'gist/network_ops', amproclefttype => 'inet',
627627
amprocrighttype => 'inet', amprocnum => '9', amproc => 'inet_gist_fetch' },
628-
{ amprocfamily => 'gist/network_ops', amproclefttype => 'inet',
629-
amprocrighttype => 'inet', amprocnum => '12',
628+
{ amprocfamily => 'gist/network_ops', amproclefttype => 'any',
629+
amprocrighttype => 'any', amprocnum => '12',
630630
amproc => 'gist_stratnum_common' },
631631
{ amprocfamily => 'gist/multirange_ops', amproclefttype => 'anymultirange',
632632
amprocrighttype => 'anymultirange', amprocnum => '1',
@@ -646,8 +646,8 @@
646646
{ amprocfamily => 'gist/multirange_ops', amproclefttype => 'anymultirange',
647647
amprocrighttype => 'anymultirange', amprocnum => '7',
648648
amproc => 'range_gist_same' },
649-
{ amprocfamily => 'gist/multirange_ops', amproclefttype => 'anymultirange',
650-
amprocrighttype => 'anymultirange', amprocnum => '12',
649+
{ amprocfamily => 'gist/multirange_ops', amproclefttype => 'any',
650+
amprocrighttype => 'any', amprocnum => '12',
651651
amproc => 'gist_stratnum_common' },
652652

653653
# gin

0 commit comments

Comments
 (0)