catalog

pg_type

Describes database types including built-ins and user-defined types.

Formal Syntax & Structure

sql syntaxsql
SELECT typname FROM pg_catalog.pg_type WHERE oid = 'integer'::regtype;

Working Example

Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.SELECT typname FROM pg_catalog.pg_type WHERE oid = 'integer'::regtype;
SQL Reference