Skip to main content

Error: language "pltcl" does not exist

Hint: Use CREATE LANGUAGE to load the language into the database.

Written by Petr Pech

How the issue manifests

The following error appears during a database upgrade:

PSQLException: ERROR: language "pltcl" does not exist

Cause

The procedural language PL/Tcl (pltcl) is missing from the database.

👉 This typically occurs after a PostgreSQL update, where:

  • the main PostgreSQL package is updated

  • but the corresponding postgresql-pltcl package is missing

Resolution

  1. Connect to the database (typically for each company)

  2. Run:

CREATE LANGUAGE pltcl;

If the command fails

You need to install the missing package:

postgresql-pltcl-<version>

(e.g. postgresql-pltcl-13)

Once installed, run the command again.

Did this answer your question?