X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AA09C9FA2F7 for ; Mon, 26 Jun 2006 21:53:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 53692-08 for ; Mon, 26 Jun 2006 21:53:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 230749FA5FC for ; Mon, 26 Jun 2006 21:53:10 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so2332720ugf for ; Mon, 26 Jun 2006 17:53:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=tX+Twctv0OIPMywQBdoEE2QHzTxyf5EEhzhKVMyBaebTjaHnKIwFVOnNbNh94jQxm/NBeIFwjN9iO8Dph10G5O2GZpTONNaLmFqBxKJEUZY0g6W3CVd1zl+rJmshIkOTPeideAMcSUHekIHKVxa883W0nfV7LA3SwpDPuUH6BBA= Received: by 10.78.177.3 with SMTP id z3mr2335333hue; Mon, 26 Jun 2006 17:53:09 -0700 (PDT) Received: by 10.78.29.2 with HTTP; Mon, 26 Jun 2006 17:53:09 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2006 19:53:09 -0500 From: "Aaron Bono" To: Joe Subject: Re: avg(interval) Cc: "Tom Lane" , "Jeremiah Elliott" , pgsql-sql@postgresql.org In-Reply-To: <44A05BD4.60900@freedomcircle.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11069_12110682.1151369589209" References: <17eca7f50606261422m77395b89ufb713720defb8b42@mail.gmail.com> <23243.1151357823@sss.pgh.pa.us> <44A05BD4.60900@freedomcircle.net> X-Google-Sender-Auth: 65a52305a404f96a X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/276 X-Sequence-Number: 25512 ------=_Part_11069_12110682.1151369589209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Right, the 23 is just less than 1 day, not 23 days. The good news: your query is working! -Aaron On 6/26/06, Joe wrote: > > Tom Lane wrote: > > "Jeremiah Elliott" writes: > >> however if i don't average them here is what i get: > >> "7 days 22:24:50.62311";"*2420" > >> "9 days 22:21:02.683393";"*2420" > >> "23:21:35.458459";"*2420" > >> "4 days 22:47:41.749756";"*2420" > >> "3 days 06:05:59.456947";"*2420" > > > >> which should average to just over nine days - > > > > Uh ... how do you arrive at that conclusion? I haven't done the math, > > but by eyeball an average of four-something days doesn't look out of > > line for those values. > > It seems he's calculating (7 + 9 + 23 + 4 + 3) / 5 ... > > Joe > > ------=_Part_11069_12110682.1151369589209 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Right, the 23 is just less than 1 day, not 23 days.

The good news: your query is working!

-Aaron

On 6/26/06, Joe < dev@freedomcircle.net> wrote:
Tom Lane wrote:
> "Jeremiah Elliott" < geek00@gmail.com> writes:
>> however if i don't average them here is what i get:
>> "7 days 22:24:50.62311";"*2420"
>> "9 days 22:21: 02.683393";"*2420"
>> "23:21:35.458459";"*2420"
>> "4 days 22:47:41.749756";"*2420"
>> "3 days 06:05:59.456947";"*2420"
>
>> which should average to just over nine days -
>
> Uh ... how do you arrive at that conclusion?  I haven't done the math,
> but by eyeball an average of four-something days doesn't look out of
> line for those values.

It seems he's calculating (7 + 9 + 23 + 4 + 3) / 5 ...

Joe

------=_Part_11069_12110682.1151369589209--