]> granicus.if.org Git - postgresql/commit
Create an official API function for C functions to use to check if they are
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Feb 2010 20:39:52 +0000 (20:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Feb 2010 20:39:52 +0000 (20:39 +0000)
commitd5768dce10576c2fb1254c03fb29475d4fac6bb4
tree7b971cb06b6671d66df26027909e1d9355d65d14
parent4d3d2e2b0325e3d6d524c6801b7439d3aaea4520
Create an official API function for C functions to use to check if they are
being called as aggregates, and to get the aggregate transition state memory
context if needed.  Use it instead of poking directly into AggState and
WindowAggState in places that shouldn't know so much.

We should have done this in 8.4, probably, but better late than never.

Revised version of a patch by Hitoshi Harada.
contrib/tsearch2/tsearch2.c
doc/src/sgml/xaggr.sgml
src/backend/executor/nodeAgg.c
src/backend/utils/adt/array_userfuncs.c
src/backend/utils/adt/float.c
src/backend/utils/adt/int8.c
src/backend/utils/adt/numeric.c
src/backend/utils/adt/varlena.c
src/include/fmgr.h