postgresql/src/include/utils
Tom Lane 5f7c2bdb53 sum() on int2 and int4 columns now uses an int8, not numeric, accumulator
for speed reasons; its result type also changes to int8.  avg() on these
datatypes now accumulates the running sum in int8 for speed; but we still
deliver the final result as numeric, so that fractional accuracy is
preserved.

count() now counts and returns in int8, not int4.  I am a little nervous
about this possibly breaking users' code, but there didn't seem to be
a strong sentiment for avoiding the problem.  If we get complaints during
beta, we can change count back to int4 and add a "count8" aggregate.
For that matter, users can do it for themselves with a simple CREATE
AGGREGATE command; the int4inc function is still present, so no C hacking
is needed.

Also added max() and min() aggregates for OID that do proper unsigned
comparison, instead of piggybacking on int4 aggregates.

initdb forced.
2001-08-14 22:21:59 +00:00
..
acl.h Back out has_table_privilege patch. 2001-06-12 16:34:27 +00:00
array.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
ascii.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
bit.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
builtins.h sum() on int2 and int4 columns now uses an int8, not numeric, accumulator 2001-08-14 22:21:59 +00:00
cash.h More functions updated to new fmgr style --- money, name, tid datatypes. 2000-08-03 16:35:08 +00:00
catcache.h Clean up some longstanding problems in shared-cache invalidation. 2001-06-19 19:42:16 +00:00
date.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
datetime.h Ensure macros are adequately parenthesized. 2001-07-10 01:39:20 +00:00
datum.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
dynahash.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
dynamic_loader.h Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
elog.h Preliminary code cleanup in elog(). Split out some code into utility 2001-06-08 21:16:49 +00:00
exc.h Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
excid.h Mark exception and assert global variables as DLLIMPORT, so that plpgsql 2001-03-23 18:26:01 +00:00
fcache.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
fmgrtab.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
formatting.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
geo_decls.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
guc.h Add GUC setting for Australian timezones. Uses new GUC boolean callback 2001-06-18 16:14:44 +00:00
hsearch.h Statistical system views (yet without the config stuff, but 2001-06-22 19:16:24 +00:00
inet.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
int8.h sum() on int2 and int4 columns now uses an int8, not numeric, accumulator 2001-08-14 22:21:59 +00:00
inval.h Clean up some longstanding problems in shared-cache invalidation. 2001-06-19 19:42:16 +00:00
logtape.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
lsyscache.h has_table_privilege functions from Joe Conway (with some kibitzing from 2001-06-14 01:09:22 +00:00
memutils.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
nabstime.h Ensure that btree sort ordering functions and boolean comparison operators 2001-05-03 19:00:37 +00:00
numeric.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
palloc.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
pg_crc.h When using 'long long int' for int64 type, check to see if the compiler 2001-03-23 18:42:12 +00:00
pg_locale.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
pg_lzcompress.h Ye-old pgindent run. Same 4-space tabs. 2000-04-12 17:17:23 +00:00
portal.h Enhancement of SPI to get access to portals 2001-05-21 14:22:19 +00:00
ps_status.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
rel.h Install infrastructure for shared-memory free space map. Doesn't actually 2001-06-27 23:31:40 +00:00
relcache.h Further work on connecting the free space map (which is still just a 2001-06-29 21:08:25 +00:00
selfuncs.h Optimizer can now estimate selectivity of IS NULL, IS NOT NULL, 2001-06-25 21:11:45 +00:00
sets.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
syscache.h Make OIDs optional, per discussions in pghackers. WITH OIDS is still the 2001-08-10 18:57:42 +00:00
temprel.h Move temprel name define from temprel.h to rel.h. 2001-06-19 12:03:41 +00:00
timestamp.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
tqual.h Create a new HeapTupleSatisfiesVacuum() routine in tqual.c that embodies the 2001-07-12 04:11:13 +00:00
tuplesort.h Tweak sorting so that nulls appear at the front of a descending sort 2001-06-02 19:01:53 +00:00
tuplestore.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
varbit.h Make bit and bit varying types reject too long input. (They already tried 2001-05-22 16:37:17 +00:00