From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ray O'Donnell <ray@rodonnell.ie>
To: PostgreSQL <pgsql-general@postgresql.org>
Subject: Re: Overlapping timestamptz ranges with priority
Date: Tue, 29 Jun 2021 14:49:14 -0700
Message-ID: <5e7b07f6-5bc7-a0e7-86af-04a63c117764@aklaver.com> (raw)
In-Reply-To: <52feb418-35fc-5ed0-5c4a-43a9ddbfd21a@rodonnell.ie>
References: <726445f7-ff72-9412-2e6d-2badcc58f17e@rodonnell.ie>
<1e0d9920-49ef-5880-0f37-26594acdc175@aklaver.com>
<8d6a1323-1214-1f54-4c5c-3dde6c346e54@rodonnell.ie>
<82200976-89c0-43db-3098-f215e980c1c4@aklaver.com>
<4244dbae-6387-0d3c-0862-c4c72e71af3c@rodonnell.ie>
<5ae0e40a-0d60-3c96-7b63-0856077a8307@aklaver.com>
<52feb418-35fc-5ed0-5c4a-43a9ddbfd21a@rodonnell.ie>
On 6/29/21 2:30 PM, Ray O'Donnell wrote:
> On 29/06/2021 22:10, Adrian Klaver wrote:
>>
>> The queued bookings are for a particular aircraft or a particular time
>> slot?
>
> They're for an aircraft. On the old system, they could only be for a
> slot - so if someone had booked, say, a two-hour slot, then anyone
> queued behind them could only queue for the same two hours. I'd like to
> make the new system more flexible, hence the potentially overlapping
> ranges.
If I'm following correctly then:
1) Under old system there where preset two hour slots over a day period,
where the period was say 8:00 to 16:00
2) You now want to allow user defined two hour slots over the same
period, where a slot can't start before 8:00 or end after 16:00.
3) First to file gets the slot.
4) Because of turn around considerations a user can't pick up the
remaining hour of an overlap. As example in the case of time slots of
10:00 - 12:00 and 11:00 - 13:00 for a particular plane where the second
slot was the later one filed the user can't get 12:00 - 13:00.
>
> Ray.
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, ray@rodonnell.ie
Subject: Re: Overlapping timestamptz ranges with priority
In-Reply-To: <5e7b07f6-5bc7-a0e7-86af-04a63c117764@aklaver.com>
References: <726445f7-ff72-9412-2e6d-2badcc58f17e@rodonnell.ie> <1e0d9920-49ef-5880-0f37-26594acdc175@aklaver.com> <8d6a1323-1214-1f54-4c5c-3dde6c346e54@rodonnell.ie> <82200976-89c0-43db-3098-f215e980c1c4@aklaver.com> <4244dbae-6387-0d3c-0862-c4c72e71af3c@rodonnell.ie> <5ae0e40a-0d60-3c96-7b63-0856077a8307@aklaver.com> <52feb418-35fc-5ed0-5c4a-43a9ddbfd21a@rodonnell.ie> <5e7b07f6-5bc7-a0e7-86af-04a63c117764@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox