Skip to main content
The pg_extension system catalogs provides information about CockroachDB extensions.
This page describes the pg_extension system catalog schema. For information about supported CREATE EXTENSION statements and PostgreSQL extension-compatible functionality, see SQL Feature Support > PostgreSQL extensions.

Data exposed by pg_extension

In CockroachDB , pg_extension contains the following tables, all of which provide information about CockroachDB’s spatial extension:
  • geography_columns
  • geometry_columns
  • spatial_ref_sys
pg_extension tables are read-only.
To see the list of tables in pg_extension for the current database, use the following SHOW TABLES statement:

Querying pg_extension tables

You can run SELECT queries on the tables in pg_extension.
To ensure that you can view all of the tables in pg_extension, query the tables as a user with admin privileges.
Unless specified otherwise, queries to pg_extension assume the current database.
For example, to return the pg_extension table with additional information about indexes in the movr database, you can query the pg_extension.pg_indexes table:

See also