If you’re getting a PostgreSQL error that reads “function generate_subscripts(numeric, integer) does not exist“, it’s probably because your first argument is not an array. This specific error message implies that the first argument is a numeric value, but we’d get a similar error when passing an integer.
The first argument for this function must be an array.
To fix this error, be sure that your first argument to generate_subscripts()
is an array.