pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Crain <kevin.crain1@gmail.com>
To: Jasen Betts <jasen@xnet.co.nz>
Cc: pgsql-sql@postgresql.org
Subject: Re: selecting records X minutes apart
Date: Sat, 4 Jun 2011 08:49:09 -0700
Message-ID: <BANLkTimnn2zMO9C3BxTPHPPnRv1q-MGijQ@mail.gmail.com> (raw)
In-Reply-To: <isd5s4$86l$1@reversiblemaps.ath.cx>
References: <20110603195253.GE1324@slacker.ja10629.home>
	<isd5s4$86l$1@reversiblemaps.ath.cx>

It looks like maybe he is trying to fetch records that either have no
previous entries or have another record with a timestamp 5 minutes
before them at the time they are inserted...


On Sat, Jun 4, 2011 at 4:45 AM, Jasen Betts <jasen@xnet.co.nz> wrote:
> On 2011-06-03, lists-pgsql@useunix.net <lists-pgsql@useunix.net> wrote:
>>
>> ID    TS (HH:MM)
>> -------------------
>> 0     20:00
>> 0     20:05
>> 0     20:10
>> 1     20:03
>> 1     20:09
>>
>>
>> Does my question make sense?
>
> no, why is (1,20:04) excluded, but (0,20:05) included?
> both records are 5 minutes from the newest.
>
> --
> ⚂⚃ 100% natural
>
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>



view thread (18+ messages)  latest in thread

Message-ID: <BANLkTimnn2zMO9C3BxTPHPPnRv1q-MGijQ@mail.gmail.com>
Permalink:  ../BANLkTimnn2zMO9C3BxTPHPPnRv1q-MGijQ@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTimnn2zMO9C3BxTPHPPnRv1q-MGijQ@mail.gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: kevin.crain1@gmail.com, jasen@xnet.co.nz
  Subject: Re: selecting records X minutes apart
  In-Reply-To: <BANLkTimnn2zMO9C3BxTPHPPnRv1q-MGijQ@mail.gmail.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