by jeltz · 14y ago · 0 comments
Example of adding such a constraint:
ALTER TABLE reservation ADD EXCLUDE USING gist (room WITH =, during WITH &&);
In this example a room cannot be double booked.EDIT: This is a feature entirely unique to PostgreSQL.
Jonathan S. Katz will also be presenting on Range Types.