I am getting this error message (shown in title), when I run this SQL statement in PG 8.4:
psql -h localhost -U postgres -d mydb -c "CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler VALIDATOR plpgsql_validator"
What’s causing this (it used to work with earlier versions of PG), and how do I resolve it?
This procedure has been simplified. For
plpgsqlsimply use:The error message tells you, that
plpgsqlis among a number of predefined languages listed in the system tablepg_pltemplate. Just have a look:In PostgreSQL 9.0 and later, PL/pgSQL is pre-installed by default.