If you’re getting a PostgreSQL error that reads something like “function generate_subscripts(text[], integer, integer) does not exist“, it’s probably because your third argument is of the wrong type when using the generate_subscripts()
function.
The above error specifically implies that an integer was passed as the third argument, but it must be a boolean value.
The third argument of the generate_subscripts()
function is optional, but if passed, it must be a boolean expression.
To fix this error, either pass a boolean value as the third argument, or eliminate the third argument altogether.
Continue reading