pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-sql@postgreSQL.org
Subject: Patches for various NUMERIC bugs posted on pgsql-patches
Date: Sat, 15 Jan 2000 20:07:37 -0500
Message-ID: <17157.947984857@sss.pgh.pa.us> (raw)

I dug into the various reports of NUMERIC/DECIMAL bugs today,
and found that there were several different bugs lurking there.
If you are interested in having fixes to these problems before 7.0
comes out, see the patches I posted on the pgsql-patches list.

Problems fixed:

  * Platform-dependent failure of NUMERIC AVG() function.
  * Bogus rounding/overflow check would cause zero to be rejected
    in a field that has only fraction digits, e.g. DECIMAL(4,4).
  * numeric_out's rounding code could actually cause a coredump in
    pathological cases (hasn't been reported from the field, though).
  * NUMERIC basically didn't work at all in PL/PGSQL functions; on most
    platforms you'd get bogus "overflow" errors.

			regards, tom lane



Message-ID: <17157.947984857@sss.pgh.pa.us>
Permalink:  ../17157.947984857@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17157.947984857@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: Patches for various NUMERIC bugs posted on pgsql-patches
  In-Reply-To: <17157.947984857@sss.pgh.pa.us>
  References: <17157.947984857@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