Overview
Thepg_type table stores information about built-in data types. It mimics the pg_type PostgreSQL system catalog.
Columns
This table is designed for compatibility with tools that require PostgreSQL system tables, so it mostly has dummy data. Please note that not all columns in
pg_type are applicable to every type of relation.pg_type:
Example
This example query retrieves the Object ID (oid) and data type name (typname) from the pg_type catalog. You can adjust the columns in the SELECT statement based on your needs.