Equivalente à restrição de exclusão composta por número inteiro e intervalo
Eu preciso ter algo equivalente a issoexclusion
restrição
drop table if exists t;
create table t (
i int,
tsr tstzrange,
exclude using gist (i with =, tsr with &&)
);
ERROR: data type integer has no default operator class for access method "gist"
HINT: You must specify an operator class for the index or define a default operator class for the data type.
Eu acho que o problema é óbvio a partir da mensagem de erro. Como fazer isso?