Re: reservation overlap constraint checking?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Aditya <aditya(at)grot(dot)org>
Cc: sfpug(at)postgresql(dot)org
Subject: Re: reservation overlap constraint checking?
Date: 2005-05-20 18:29:11
Message-ID: 200505201129.11439.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug

Aditya,

> however, that seems less than elegant because there is time between the
> check and the insert for a competing entry to get inserted....so next thing
> to try is a constratint:

Use a transaction and "select for update".

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse sfpug by date

  From Date Subject
Next Message Aditya 2005-05-20 19:03:48 Re: reservation overlap constraint checking?
Previous Message Aditya 2005-05-20 16:25:08 reservation overlap constraint checking?