diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-13 12:40:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-13 12:40:28 -0400 |
commit | 096e708056ead615f82a851d0825d9d6b40f7c96 (patch) | |
tree | bfdf5c37f2718e004bf4bad3959fd2f970a7b173 /src/common/jsonapi.c | |
parent | 7e319231c6bba7bad4a71a47ed0aefadf71e1103 (diff) | |
download | postgresql-096e708056ead615f82a851d0825d9d6b40f7c96.tar.gz postgresql-096e708056ead615f82a851d0825d9d6b40f7c96.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/common/jsonapi.c')
0 files changed, 0 insertions, 0 deletions