From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Randall Skelton <skelton(at)brutus(dot)uwaterloo(dot)ca> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: returning row numbers in select |
Date: | 2004-03-10 23:18:40 |
Message-ID: | 20040310231840.GA10056@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Mar 10, 2004 at 17:25:49 -0500,
Randall Skelton <skelton(at)brutus(dot)uwaterloo(dot)ca> wrote:
>
> That would be ideal as it is theoretically possible for there to be
> missing rows due to sampling errors; nevertheless, a WHERE test doesn't
> seem obvious to me. Can you please post an example? The time spacing
> between rows is 1 second but I want my select statement to return rows
> every 5 seconds (see marked lines below). I've tried various interval
> operations but I don't really understand how to relate the timestamp
> and and the interval.
You could extract seconds from timestamp, cast to integer and apply
the mod function and test against whichever remainder you want.
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Swan | 2004-03-10 23:18:55 | Re: [GENERAL] Shouldn't B'1' = 1::bit be true? |
Previous Message | Tom Lane | 2004-03-10 23:01:44 | Re: returning row numbers in select |