Re: Constraint exclusion with box and integer

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Constraint exclusion with box and integer
Date: 2011-01-21 18:48:43
Message-ID: AANLkTimaMPQeZHx7pgV5XsZvt_Lt56rBZWDeV1Tfuft4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jan 21, 2011 at 6:36 PM, Daniele Varrazzo
<daniele(dot)varrazzo(at)gmail(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message MargaretGillon 2011-01-21 19:07:34 pg_dumpall backup script w. ftp ; pgpass file ; after upgrade to Ubuntu 10.4 (lucid) and Postgresql 9.0.2
Previous Message Daniele Varrazzo 2011-01-21 18:36:53 Constraint exclusion with box and integer