aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath_exec.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2021-09-20 00:34:57 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2021-09-20 00:45:29 +0200
commit66061077155d68463ec00604ba7d6f0ae69716e8 (patch)
tree8d9950a1e70e63e78b5b531522279744ca65f5e7 /src/backend/utils/adt/jsonpath_exec.c
parent2a9a34c3100d8c0311c63baaa435be38a7d7aae5 (diff)
downloadpostgresql-66061077155d68463ec00604ba7d6f0ae69716e8.tar.gz
postgresql-66061077155d68463ec00604ba7d6f0ae69716e8.zip
Disallow extended statistics on system columns
Since introduction of extended statistics, we've disallowed references to system columns. So for example CREATE STATISTICS s ON ctid FROM t; would fail. But with extended statistics on expressions, it was possible to work around this limitation quite easily CREATE STATISTICS s ON (ctid::text) FROM t; This is an oversight in a4d75c86bf, fixed by adding a simple check. Backpatch to PostgreSQL 14, where support for extended statistics on expressions was introduced. Backpatch-through: 14 Discussion: https://postgr.es/m/20210816013255.GS10479%40telsasoft.com
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions