Redrock Postgres Documentation
Home Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

42883 Undefined Function

ERROR: function does not exist

If you encounter an error message like following, it means your query tries to use a function that does not exist.

ERROR: function x(integer) does not exist at character 8
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
STATEMENT: SELECT x(1);

Note that function parameters in Postgres are data type specific, which means that this can also often occur when the values passed to the function do not match the required data types.

In case the wrong data types are passed in, add an explicit type cast. Otherwise review if the function name is spelled correctly, and whether the function has been created on the database.