pg_pltemplate

A system catalogue table storing implementation detail for procedural languages

pg_pltemplate is a system catalogue table storing implementation detail for procedural languages.

pg_pltemplate was introduced in PostgreSQL 8.1 (commit 48123de7) and removed in PostgreSQL 13 (commit 50fc694e).

This table is shared across all databases in a cluster.

Definition by PostgreSQL version

pg_pltemplate (PostgreSQL 12)

              Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Collation | Nullable | Default
---------------+-----------+-----------+----------+---------
 tmplname      | name      |           | not null |
 tmpltrusted   | boolean   |           | not null |
 tmpldbacreate | boolean   |           | not null |
 tmplhandler   | text      | C         | not null |
 tmplinline    | text      | C         |          |
 tmplvalidator | text      | C         |          |
 tmpllibrary   | text      | C         | not null |
 tmplacl       | aclitem[] |           |          |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 11)

              Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Collation | Nullable | Default
---------------+-----------+-----------+----------+---------
 tmplname      | name      |           | not null |
 tmpltrusted   | boolean   |           | not null |
 tmpldbacreate | boolean   |           | not null |
 tmplhandler   | text      |           | not null |
 tmplinline    | text      |           |          |
 tmplvalidator | text      |           |          |
 tmpllibrary   | text      |           | not null |
 tmplacl       | aclitem[] |           |          |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 10)

              Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Collation | Nullable | Default
---------------+-----------+-----------+----------+---------
 tmplname      | name      |           | not null |
 tmpltrusted   | boolean   |           | not null |
 tmpldbacreate | boolean   |           | not null |
 tmplhandler   | text      |           | not null |
 tmplinline    | text      |           |          |
 tmplvalidator | text      |           |          |
 tmpllibrary   | text      |           | not null |
 tmplacl       | aclitem[] |           |          |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.6)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      | not null
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      | not null
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.5)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      | not null
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      | not null
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.4)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.3)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.2)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.1)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 9.0)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplinline    | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 8.4)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 8.3)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmpldbacreate | boolean   | not null
 tmplhandler   | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

pg_pltemplate (PostgreSQL 8.2)

   Table "pg_catalog.pg_pltemplate"
    Column     |   Type    | Modifiers
---------------+-----------+-----------
 tmplname      | name      | not null
 tmpltrusted   | boolean   | not null
 tmplhandler   | text      |
 tmplvalidator | text      |
 tmpllibrary   | text      |
 tmplacl       | aclitem[] |
Indexes:
    "pg_pltemplate_name_index" UNIQUE, btree (tmplname), tablespace "pg_global"
Tablespace: "pg_global"
    

Documentation: pg_pltemplate

Change history

Examples

postgres=# SELECT * FROM pg_pltemplate WHERE tmplname='plpgsql';
-[ RECORD 1 ]-+-----------------------
tmplname      | plpgsql
tmpltrusted   | t
tmpldbacreate | t
tmplhandler   | plpgsql_call_handler
tmplinline    | plpgsql_inline_handler
tmplvalidator | plpgsql_validator
tmpllibrary   | $libdir/plpgsql
tmplacl       |

Categories

Cluster-wide table, Deprecated, Procedural language, System catalogue