aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/encode.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2020-12-21 18:58:32 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2020-12-21 19:36:22 +0100
commitfac1b470a9f7e846534620b78ea4cf122ed432b2 (patch)
tree1f744e28fef69e808d099b04d4abc6d2779f7285 /src/backend/utils/adt/encode.c
parentff5d5611c01f60525c30b2c3ebc16d05edb7956d (diff)
downloadpostgresql-fac1b470a9f7e846534620b78ea4cf122ed432b2.tar.gz
postgresql-fac1b470a9f7e846534620b78ea4cf122ed432b2.zip
Disallow SRFs when considering sorts below Gather Merge
While we do allow SRFs in ORDER BY, scan/join processing should not consider such cases - such sorts should only happen via final Sort atop a ProjectSet. So make sure we don't try adding such sorts below Gather Merge, just like we do for expressions that are volatile and/or not parallel safe. Backpatch to PostgreSQL 13, where this code was introduced as part of the Incremental Sort patch. Author: James Coleman Reviewed-by: Tomas Vondra Backpatch-through: 13 Discussion: https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com Discussion: https://postgr.es/m/295524.1606246314%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/encode.c')
0 files changed, 0 insertions, 0 deletions