If you’re getting a PostgreSQL error that reads “function generate_subscripts(integer, 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 an integer, but we’d get a similar error when passing a numeric argument.
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.