I have installed PostgresSQL 10.6 installed on Windows and using DBeaver - I confirmed the version by "SELECT VERSION()".
For some reason, whenever I try to use function SUBSTRING, I receive the below error:
SQL Error [42883]: ERROR: function pg_catalog.substring(character varying, integer, character varying, integer) does not exist
Similarly for REGEXP_MATCHES
SQL Error [42883]: ERROR: function regexp_matches(character varying, text, integer) does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts.
The syntax I'm using I believe matches the docs, for example REGEXP_MATCHES(source_string, pattern, 1)
Any ideas why Postgres would throw these errors?
regexp_matches(text,text,text)
, there is noregexp_matches(text,text,int)
. Same issue withsubstring()
, though I don't know which one you were aiming for... Show us the code. – Nick Barnes