Created
April 22, 2020 21:37
-
-
Save emailrhoads/efd57ab2df98963ebc7becd01e08f78b to your computer and use it in GitHub Desktop.
[List PG Enums] #postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select n.nspname as enum_schema, | |
| t.typname as enum_name, | |
| e.enumlabel as enum_value | |
| from pg_type t | |
| join pg_enum e on t.oid = e.enumtypid | |
| join pg_catalog.pg_namespace n ON n.oid = t.typnamespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment