Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EA78BB632E4 for ; Sat, 4 Jun 2011 12:49:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 51512-02 for ; Sat, 4 Jun 2011 15:49:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by mail.postgresql.org (Postfix) with ESMTP id B6A41B62760 for ; Sat, 4 Jun 2011 12:49:30 -0300 (ADT) Received: by iwn34 with SMTP id 34so2103489iwn.19 for ; Sat, 04 Jun 2011 08:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=nneYBLkGLHAiX/d71YFbMzJfp4TlH3ddmyIutKwQ744=; b=MsscBUBlH1PO1RBFeNM/qEhWyTvamcVQecaMLe5QPb/MOguLNHA85v6O7IKAZsS1JM jTzotVRBvemix6jpFzR6B7FBHu8dKlgvHBsNh9Bq1I1cgor6ONJk8ZBzMJWarsDjSB69 5wYbMQfvm+tOf9AeehkqMJwr4vTIzD31DsNSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=s3H3C41o35pasy424qwwCxWe3f5W7H/aRaiYnIBlxm6axF/AF3fFbUpGgQ2+C5gEwW pCAMKUF+wNwmpvyYKSJkSTuOE57W4JIiX+nEpj/WtNObPj9vyqqFg7vnJVr1st0EMZHA /31yuuWS3bR0+MAF6GwpfWhT3BETgOoI95p0I= Received: by 10.231.116.139 with SMTP id m11mr4611729ibq.165.1307202569115; Sat, 04 Jun 2011 08:49:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.149.132 with HTTP; Sat, 4 Jun 2011 08:49:09 -0700 (PDT) In-Reply-To: References: <20110603195253.GE1324@slacker.ja10629.home> From: Kevin Crain Date: Sat, 4 Jun 2011 08:49:09 -0700 Message-ID: Subject: Re: selecting records X minutes apart To: Jasen Betts Cc: pgsql-sql@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.345 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/7 X-Sequence-Number: 35473 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 wrote: > On 2011-06-03, lists-pgsql@useunix.net wrote: >> >> ID =C2=A0 =C2=A0TS (HH:MM) >> ------------------- >> 0 =C2=A0 =C2=A0 20:00 >> 0 =C2=A0 =C2=A0 20:05 >> 0 =C2=A0 =C2=A0 20:10 >> 1 =C2=A0 =C2=A0 20:03 >> 1 =C2=A0 =C2=A0 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. > > -- > =E2=9A=82=E2=9A=83 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 >