Skip to content

Tag: enums

PostgreSQL conditional ENUM

Let’s say I have a table inventory with columns item_id, category and size. item_id is auto incremented integer (primary key) category is ENUM size is ENUM I want size to be a conditional ENUM. …