Postgresql – Read/write lock on range using EXCLUDE constraint
I have a table: CREATE EXTENSION btree_gist; CREATE TABLE excllock ( id BIGSERIAL PRIMARY KEY, myrange INT8RANGE NOT NULL, key UUID NOT NULL, isread BOOLEAN NOT NULL, EXCLUDE USING gist ( myrange WITH &&, key WITH = ) ); I'd…