Re: grouping by time interval - Mailing list pgsql-novice

From Larry Rosenman
Subject Re: grouping by time interval
Date
Msg-id alpine.BSF.2.00.0904011504580.5151@thebighonker.lerctr.org
Whole thread Raw
In response to grouping by time interval  (Michael Lush <mjlush@ebi.ac.uk>)
Responses Re: grouping by time interval  (Michael Lush <mjlush@ebi.ac.uk>)
List pgsql-novice
On Wed, 1 Apr 2009, Michael Lush wrote:

>
> I'm writing a photo database for my family photos.  I've got a massive back
> log so I'd like to some large scale annotation and break things up into
> manageable chunks.
>
> I think one useful assumption would be tha any set of photos taken within of
> a few seconds of each other (say 5 or less) are /probably/ about the same
> subject...
>
> How would I go about detecting and marking events where the time interval
> between two photos is less than 5 seconds
>
[snip]

Have a look at the OVERLAPS operator.


--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

pgsql-novice by date:

Previous
From: Michael Lush
Date:
Subject: grouping by time interval
Next
From: Robert Schnabel
Date:
Subject: WAL and TMP directory locations