Skip to content

Commit 5cb65e2

Browse files
committed
fix opr_sanity
1 parent ef30f6f commit 5cb65e2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/backend/utils/adt/arrayfuncs.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5957,6 +5957,14 @@ array_unnest(PG_FUNCTION_ARGS)
59575957
}
59585958
}
59595959

5960+
/*
5961+
* Just a simplest wrapper to keep opr_sanity clean
5962+
*/
5963+
Datum
5964+
array_unnest_element(PG_FUNCTION_ARGS)
5965+
{
5966+
return array_unnest(fcinfo);
5967+
}
59605968

59615969
/*
59625970
* array_replace/array_remove support

src/include/catalog/pg_proc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ DESCR("array constructor with value");
925925
DATA(insert OID = 2331 ( unnest PGNSP PGUID 12 1 100 0 0 f f f f t t i 1 0 2283 "2277" _null_ _null_ _null_ _null_ _null_ array_unnest _null_ _null_ _null_ ));
926926
DESCR("expand array to set of rows");
927927
/* just for compatibility with jsonb_unnest* for any/each element clause */
928-
DATA(insert OID = 7644 ( unnest_element PGNSP PGUID 12 1 100 0 0 f f f f t t i 2 0 2283 "2277 16" _null_ _null_ _null_ _null_ _null_ array_unnest _null_ _null_ _null_ ));
928+
DATA(insert OID = 7644 ( unnest_element PGNSP PGUID 12 1 100 0 0 f f f f t t i 2 0 2283 "2277 16" _null_ _null_ _null_ _null_ _null_ array_unnest_element _null_ _null_ _null_ ));
929929
DESCR("expand array to set of rows");
930930
DATA(insert OID = 3167 ( array_remove PGNSP PGUID 12 1 0 0 0 f f f f f f i 2 0 2277 "2277 2283" _null_ _null_ _null_ _null_ _null_ array_remove _null_ _null_ _null_ ));
931931
DESCR("remove any occurrences of an element from an array");

src/include/utils/array.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ extern Datum generate_subscripts_nodir(PG_FUNCTION_ARGS);
356356
extern Datum array_fill(PG_FUNCTION_ARGS);
357357
extern Datum array_fill_with_lower_bounds(PG_FUNCTION_ARGS);
358358
extern Datum array_unnest(PG_FUNCTION_ARGS);
359+
extern Datum array_unnest_element(PG_FUNCTION_ARGS);
359360
extern Datum array_remove(PG_FUNCTION_ARGS);
360361
extern Datum array_replace(PG_FUNCTION_ARGS);
361362
extern Datum width_bucket_array(PG_FUNCTION_ARGS);

0 commit comments

Comments
 (0)