0

short code

drop table if exists x;
create temp table x(
d date,
  exclude using gist (extract(month from d) with =,
                      extract(year from d) with =)
);

how to make this possible CREATE EXTENSION if not exists btree_gist; -- i also tried

I don't want overlapping month and year

Rami Jamleh
  • 1,819
  • 1
  • 13
  • 10

0 Answers0