implementation of set of enum
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Makefile
README.md
enumset--1.0.sql
enumset--unpackaged--1.0.sql
enumset.c
enumset.control

README.md

Enumset

This is a PostgreSQL's extension that enable a set of enums

Usage

postgres=# create type colors as enum('red','white','yellow','blue');
CREATE TYPE
postgres=# select '{red, white}'::enumset(colors);
  enumset   
-------------
 {red,white}
(1 row)

postgres=# select '{red, white, nocolor}'::enumset(colors);
ERROR:  invalid input value for enum colors: "nocolor"

postgres=# select '{}'::enumset(colors);
 enumset 
 ---------
  {}
(1 row)