]> granicus.if.org Git - postgresql/commit
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
authorMarc G. Fournier <scrappy@hub.org>
Thu, 3 Apr 1997 19:56:47 +0000 (19:56 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 3 Apr 1997 19:56:47 +0000 (19:56 +0000)
commit9d5c0af5862cc0141ea16ca90a9e01250716af37
treea5097449997b576fc951c5f5ca33a29df8f039fa
parent164cd7ab342da27686f0114775a1050ad89b7437
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
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 :).
src/backend/executor/nodeAgg.c
src/backend/optimizer/geqo/geqo_eval.c
src/backend/tcop/aclchk.c
src/include/catalog/pg_aggregate.h
src/update6_0-6_1.sh [new file with mode: 0644]
src/update6_0-6_1.sql [new file with mode: 0644]