aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-03-13 12:40:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-03-13 12:40:28 -0400
commit62a91a1b092606e55d8a9807d249ceda58feebb0 (patch)
tree40d12df03bcf05a2c1f891ccd2d02a60aff6648d /src/backend/utils/adt/json.c
parent2bc36a56cbd15415f85f3364044b778b21b0504c (diff)
downloadpostgresql-62a91a1b092606e55d8a9807d249ceda58feebb0.tar.gz
postgresql-62a91a1b092606e55d8a9807d249ceda58feebb0.zip
Fix failure to detect some cases of improperly-nested aggregates.
check_agg_arguments_walker() supposed that it needn't descend into the arguments of a lower-level aggregate function, but this is just wrong in the presence of multiple levels of sub-select. The oversight would lead to executor failures on queries that should be rejected. (Prior to v11, they actually were rejected, thanks to a "redundant" execution-time check.) Per bug #17835 from Anban Company. Back-patch to all supported branches. Discussion: https://postgr.es/m/17835-4f29f3098b2d0ba4@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions