view enum column postgres code example Example: psql view enum values SELECT enum_range(NULL::myenum);