@@ -53,14 +53,15 @@ spoint_brin_inclusion_add_value(PG_FUNCTION_ARGS)
5353 PG_RETURN_BOOL (true);
5454 }
5555
56- spherepoint_gen_key (& spointkey , newval );
56+ spherepoint_gen_key (spointkey , newval );
5757
5858 /*
5959 * If spherekey pointer is NULL, we consider the spoint entry as 'empty'.
6060 *
6161 * The OpClass support empty entries: we need to set the "contains empty"
6262 * flag in the element (unless already set).
6363 */
64+ /*
6465 if (spointkey == NULL)
6566 {
6667 if (!DatumGetBool(column->bv_values[INCLUSION_CONTAINS_EMPTY]))
@@ -71,6 +72,7 @@ spoint_brin_inclusion_add_value(PG_FUNCTION_ARGS)
7172
7273 PG_RETURN_BOOL(false);
7374 }
75+ */
7476
7577 /* if the recorded value is null, we just need to store the spherekey */
7678 if (column -> bv_allnulls )
@@ -121,14 +123,15 @@ sbox_brin_inclusion_add_value(PG_FUNCTION_ARGS)
121123 PG_RETURN_BOOL (true);
122124 }
123125
124- spherebox_gen_key (& sboxkey , newval );
126+ spherebox_gen_key (sboxkey , newval );
125127
126128 /*
127129 * If spherekey pointer is NULL, we consider the spoint entry as 'empty'.
128130 *
129131 * The OpClass support empty entries: we need to set the "contains empty"
130132 * flag in the element (unless already set).
131133 */
134+ /*
132135 if (sboxkey == NULL)
133136 {
134137 if (!DatumGetBool(column->bv_values[INCLUSION_CONTAINS_EMPTY]))
@@ -139,6 +142,7 @@ sbox_brin_inclusion_add_value(PG_FUNCTION_ARGS)
139142
140143 PG_RETURN_BOOL(false);
141144 }
145+ */
142146
143147 /* if the recorded value is null, we just need to store the spherekey */
144148 if (column -> bv_allnulls )
@@ -178,7 +182,7 @@ spoint_overlaps_spherekey(PG_FUNCTION_ARGS)
178182 SPoint * p1 = (SPoint * ) PG_GETARG_POINTER (0 );
179183 int32 * k2 = (int32 * ) PG_GETARG_POINTER (1 );
180184
181- spherepoint_gen_key (& k1 , p1 );
185+ spherepoint_gen_key (k1 , p1 );
182186 if (spherekey_interleave (k1 , k2 ) == SCKEY_OVERLAP )
183187 {
184188 PG_RETURN_BOOL (true);
@@ -194,7 +198,7 @@ spoint_contains_spherekey(PG_FUNCTION_ARGS)
194198 SPoint * p1 = (SPoint * ) PG_GETARG_POINTER (0 );
195199 int32 * k2 = (int32 * ) PG_GETARG_POINTER (1 );
196200
197- spherepoint_gen_key (& k1 , p1 );
201+ spherepoint_gen_key (k1 , p1 );
198202 if (spherekey_interleave (k1 , k2 ) == SCKEY_IN )
199203 {
200204 PG_RETURN_BOOL (true);
@@ -210,7 +214,7 @@ spoint_iscontained_spherekey(PG_FUNCTION_ARGS)
210214 SPoint * p1 = (SPoint * ) PG_GETARG_POINTER (0 );
211215 int32 * k2 = (int32 * ) PG_GETARG_POINTER (1 );
212216
213- spherepoint_gen_key (& k1 , p1 );
217+ spherepoint_gen_key (k1 , p1 );
214218 if (spherekey_interleave (k2 , k1 ) == SCKEY_IN )
215219 {
216220 PG_RETURN_BOOL (true);
@@ -226,7 +230,7 @@ sbox_overlaps_spherekey(PG_FUNCTION_ARGS)
226230 SBOX * p1 = (SBOX * ) PG_GETARG_POINTER (0 );
227231 int32 * k2 = (int32 * ) PG_GETARG_POINTER (1 );
228232
229- spherebox_gen_key (& k1 , p1 );
233+ spherebox_gen_key (k1 , p1 );
230234 if (spherekey_interleave (k1 , k2 ) == SCKEY_OVERLAP )
231235 {
232236 PG_RETURN_BOOL (true);
@@ -242,7 +246,7 @@ sbox_contains_spherekey(PG_FUNCTION_ARGS)
242246 SBOX * p1 = (SBOX * ) PG_GETARG_POINTER (0 );
243247 int32 * k2 = (int32 * ) PG_GETARG_POINTER (1 );
244248
245- spherebox_gen_key (& k1 , p1 );
249+ spherebox_gen_key (k1 , p1 );
246250 if (spherekey_interleave (k1 , k2 ) == SCKEY_IN )
247251 {
248252 PG_RETURN_BOOL (true);
@@ -258,7 +262,7 @@ sbox_iscontained_spherekey(PG_FUNCTION_ARGS)
258262 SBOX * p1 = (SBOX * ) PG_GETARG_POINTER (0 );
259263 int32 * k2 = (int32 * ) PG_GETARG_POINTER (1 );
260264
261- spherebox_gen_key (& k1 , p1 );
265+ spherebox_gen_key (k1 , p1 );
262266 if (spherekey_interleave (k2 , k1 ) == SCKEY_IN )
263267 {
264268 PG_RETURN_BOOL (true);
@@ -317,8 +321,8 @@ spoint_overlaps_sbox(PG_FUNCTION_ARGS)
317321 int32 k2 [6 ];
318322 SBOX * p2 = (SBOX * ) PG_GETARG_POINTER (1 );
319323
320- spherepoint_gen_key (& k1 , p1 );
321- spherebox_gen_key (& k2 , p2 );
324+ spherepoint_gen_key (k1 , p1 );
325+ spherebox_gen_key (k2 , p2 );
322326
323327 if (spherekey_interleave (k1 , k2 ) == SCKEY_OVERLAP )
324328 {
@@ -336,8 +340,8 @@ sbox_iscontained_spoint(PG_FUNCTION_ARGS)
336340 int32 k2 [6 ];
337341 SPoint * p2 = (SPoint * ) PG_GETARG_POINTER (1 );
338342
339- spherebox_gen_key (& k1 , p1 );
340- spherepoint_gen_key (& k2 , p2 );
343+ spherebox_gen_key (k1 , p1 );
344+ spherepoint_gen_key (k2 , p2 );
341345
342346 if (spherekey_interleave (k1 , k2 ) == SCKEY_IN )
343347 {
0 commit comments