pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mcelroy, tim <tim.mcelroy@bostonstock.com>
Cc: 'pgsql-performance@postgresql.org' <pgsql-performance@postgresql.org>
Subject: Re: pg_reset_stats + cache I/O %
Date: Tue, 07 Mar 2006 14:36:56 -0500
Message-ID: <2756.1141760216@sss.pgh.pa.us> (raw)
In-Reply-To: <0C4841B42F87D51195BD00B0D020F5CB044B240E@morpheus.bostonstock.com>
References: <0C4841B42F87D51195BD00B0D020F5CB044B240E@morpheus.bostonstock.com>

"mcelroy, tim" <tim.mcelroy@bostonstock.com> writes:
> ERROR:  function round(double precision, integer) does not exist

Try coercing to numeric instead of float.  Also, it'd be a good idea to
put that coercion outside the sum()'s instead of inside --- summing
bigints is probably noticeably faster than summing numerics.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <2756.1141760216@sss.pgh.pa.us>
Permalink:  ../2756.1141760216@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2756.1141760216@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tim.mcelroy@bostonstock.com
  Subject: Re: pg_reset_stats + cache I/O %
  In-Reply-To: <2756.1141760216@sss.pgh.pa.us>

* 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