This file contains 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 | |
type.typname AS name, | |
string_agg(enum.enumlabel, '|') AS value | |
FROM pg_enum AS enum | |
JOIN pg_type AS type | |
ON (type.oid = enum.enumtypid) | |
GROUP BY type.typname; |