On Fri, Jan 21, 2011 at 6:36 PM, Daniele Varrazzo <daniele.varrazzo@xxxxxxxxx> wrote: > All the examples I've found check a record against the whole table. > But in practice I will have a table of resources (hotel rooms, > whatever) and independent periods for each resource. Clarification: I have read the depesz article (http://www.depesz.com/index.php/2010/01/03/waiting-for-8-5-exclusion-constraints/) but in my problem the overlaps must be check on the combination of three ids, so it would take a 4D box, and still I wonder if it would be doable at all if an id was a string. -- Daniele -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general