Created
March 27, 2025 09:36
-
-
Save ClimenteA/db1f9b24329ecd331555d77a44febebb to your computer and use it in GitHub Desktop.
How to view enum types in postgresql
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 * FROM pg_type | |
SELECT pg_type.typname AS enumtype, | |
pg_enum.enumlabel AS enumlabel | |
FROM pg_type | |
JOIN pg_enum | |
ON pg_enum.enumtypid = pg_type.oid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment