SHOW TYPES statement lists the user-defined in the current database.
SHOW TYPES does not list . To view domains, use .Syntax
Required privileges
TheCONNECT on the database is required to list any user-defined types in the database.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
SHOW TYPES statement lists the user-defined in the current database.
SHOW TYPES does not list . To view domains, use .SHOW TYPES
CONNECT on the database is required to list any user-defined types in the database.
> CREATE TYPE weekday AS ENUM ('monday', 'tuesday', 'wednesday', 'thursday', 'friday');
> CREATE TYPE weekend AS ENUM ('sunday', 'saturday');
> SHOW TYPES;
schema | name | owner
---------+---------+--------
public | weekday | root
public | weekend | root
(2 rows)
