Backport AggCheckCallContext() (#607)
Backport below commit from upstream: commit d5768dce Author: Tom Lane <tgl@sss.pgh.pa.us> Date: Mon Feb 8 20:39:52 2010 +0000 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. modified: src/backend/executor/nodeAgg.c modified: src/include/fmgr.h
Showing
想要评论请 注册 或 登录