@@ -119,7 +119,7 @@ find_or_create_range_partition(PG_FUNCTION_ARGS)
119
119
RangeEntry found_rentry ;
120
120
search_rangerel_result search_state ;
121
121
122
- prel = get_pathman_relation_info (parent_oid , NULL );
122
+ prel = get_pathman_relation_info (parent_oid );
123
123
124
124
if (!prel )
125
125
PG_RETURN_NULL ();
@@ -190,13 +190,13 @@ get_partition_range(PG_FUNCTION_ARGS)
190
190
TypeCacheEntry * tce ;
191
191
ArrayType * arr ;
192
192
193
- prel = get_pathman_relation_info (parent_oid , NULL );
193
+ prel = get_pathman_relation_info (parent_oid );
194
194
195
195
if (!prel )
196
196
PG_RETURN_NULL ();
197
197
198
- ranges = PrelGetRangesArray (prel , true );
199
- parts = PrelGetChildrenArray (prel , true );
198
+ ranges = PrelGetRangesArray (prel );
199
+ parts = PrelGetChildrenArray (prel );
200
200
tce = lookup_type_cache (prel -> atttype ,0 );
201
201
202
202
/* Looking for specified partition */
@@ -279,15 +279,15 @@ get_range_by_idx(PG_FUNCTION_ARGS)
279
279
RangeEntry re ;
280
280
Datum * elems ;
281
281
282
- prel = get_pathman_relation_info (parent_oid , NULL );
282
+ prel = get_pathman_relation_info (parent_oid );
283
283
if (!prel )
284
284
elog (ERROR ,"Cannot get partitioning cache entry for relation %u" ,parent_oid );
285
285
286
286
if (((uint32 )abs (idx )) >=PrelChildrenCount (prel ))
287
287
elog (ERROR ,"Partition #%d does not exist (max is #%u)" ,
288
288
idx ,PrelChildrenCount (prel )- 1 );
289
289
290
- ranges = PrelGetRangesArray (prel , true );
290
+ ranges = PrelGetRangesArray (prel );
291
291
if (idx >=0 )
292
292
re = ranges [idx ];
293
293
else if (idx == -1 )
@@ -316,12 +316,12 @@ get_min_range_value(PG_FUNCTION_ARGS)
316
316
PartRelationInfo * prel ;
317
317
RangeEntry * ranges ;
318
318
319
- prel = get_pathman_relation_info (parent_oid , NULL );
319
+ prel = get_pathman_relation_info (parent_oid );
320
320
321
321
if (!prel || prel -> parttype != PT_RANGE || PrelChildrenCount (prel )== 0 )
322
322
PG_RETURN_NULL ();
323
323
324
- ranges = PrelGetRangesArray (prel , true );
324
+ ranges = PrelGetRangesArray (prel );
325
325
326
326
PG_RETURN_DATUM (ranges [0 ].min );
327
327
}
@@ -336,12 +336,12 @@ get_max_range_value(PG_FUNCTION_ARGS)
336
336
PartRelationInfo * prel ;
337
337
RangeEntry * ranges ;
338
338
339
- prel = get_pathman_relation_info (parent_oid , NULL );
339
+ prel = get_pathman_relation_info (parent_oid );
340
340
341
341
if (!prel || prel -> parttype != PT_RANGE || PrelChildrenCount (prel )== 0 )
342
342
PG_RETURN_NULL ();
343
343
344
- ranges = PrelGetRangesArray (prel , true );
344
+ ranges = PrelGetRangesArray (prel );
345
345
346
346
PG_RETURN_DATUM (ranges [PrelChildrenCount (prel )- 1 ].max );
347
347
}
@@ -368,7 +368,7 @@ check_overlap(PG_FUNCTION_ARGS)
368
368
RangeEntry * ranges ;
369
369
uint32 i ;
370
370
371
- prel = get_pathman_relation_info (parent_oid , NULL );
371
+ prel = get_pathman_relation_info (parent_oid );
372
372
373
373
if (!prel || prel -> parttype != PT_RANGE )
374
374
PG_RETURN_NULL ();
@@ -377,7 +377,7 @@ check_overlap(PG_FUNCTION_ARGS)
377
377
fill_type_cmp_fmgr_info (& cmp_func_1 ,p1_type ,prel -> atttype );
378
378
fill_type_cmp_fmgr_info (& cmp_func_2 ,p2_type ,prel -> atttype );
379
379
380
- ranges = PrelGetRangesArray (prel , true );
380
+ ranges = PrelGetRangesArray (prel );
381
381
for (i = 0 ;i < PrelChildrenCount (prel );i ++ )
382
382
{
383
383
int c1 = FunctionCall2 (& cmp_func_1 ,p1 ,ranges [i ].max );