1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00
Subject: [HACKERS] Aggregate function patches

Here are the aggregate function patches I originally sent in last December.
They fix sum() and avg() behavior for ints and floats when NULL values are
involved.

I was waiting to resubmit these until I had a chance to write a v6.0->v6.1
database upgrade script to ensure that existing v6.0 databases which have
not been reloaded for v6.1 do no break with the new aggregate behavior.
These scripts are included below. It's OK with me if someone wants to do
something different with the upgrade strategy, but something like this
was discussed a few weeks ago.

Also, there were a couple of small items which cropped up in doing a clean
install of 970403 (actually 970402 + 970403 changes since the full 970403
tar file appears to be damaged or at least suspect). They are the first
two patches below and can be omitted if desired (although I think they
aren't dangerous :).
This commit is contained in:
Marc G. Fournier
1997-04-03 19:56:47 +00:00
parent 164cd7ab34
commit 9d5c0af586
6 changed files with 127 additions and 21 deletions

View File

@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_eval.c,v 1.6 1997/03/03 23:26:45 scrappy Exp $
* $Id: geqo_eval.c,v 1.7 1997/04/03 19:55:35 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -23,7 +23,9 @@
#include <math.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
# define MAXINT INT_MAX
# ifndef MAXINT
# define MAXINT INT_MAX
# endif
#else
# include <values.h>
#endif