Re: implementing check-in/check-out of an items table

From: Seb <spluque(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: implementing check-in/check-out of an items table
Date: 2011-05-20 19:00:35
Message-ID: 87boyx2o4s.fsf@kolob.subpolar.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 20 May 2011 11:37:36 -0500,
Jack Christensen <jackc(at)hylesanderson(dot)edu> wrote:

[...]

> In a similar project I worked on start time for a loan was always the
> current time so overlaps weren't an issue. I don't have any firsthand
> experience with them, but it sounds like what you want are exclusion
> constraints.

> http://www.depesz.com/index.php/2010/01/03/waiting-for-8-5-exclusion-constraints/

This lead to a more general solution presented nicely by Jeff Davis:

http://pgfoundry.org/projects/temporal
http://www.slideshare.net/pgconf/not-just-unique-exclusion-constraints

Cheers,

--
Seb

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bobby Dewitt 2011-05-20 22:07:35 SQL Path in psql
Previous Message Devrim GÜNDÜZ 2011-05-20 18:05:00 Re: Error compiling sepgsql in PG9.1