aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_node.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2022-01-23 02:49:41 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2022-01-23 03:20:32 +0100
commit267ccc38ba6a95889d98959f183de64ceff23087 (patch)
treefa9421079bfab9300744308e603d203b27658603 /src/backend/parser/parse_node.c
parent31b7b4d26e10086d4a79d49a28fd161da52da49a (diff)
downloadpostgresql-267ccc38ba6a95889d98959f183de64ceff23087.tar.gz
postgresql-267ccc38ba6a95889d98959f183de64ceff23087.zip
Check syscache result in AlterStatistics
The syscache lookup may return NULL even for valid OID, for example due to a concurrent DROP STATISTICS, so a HeapTupleIsValid is necessary. Without it, it may fail with a segfault. Reported by Alexander Lakhin, patch by me. Backpatch to 13, where ALTER STATISTICS ... SET STATISTICS was introduced. Backpatch-through: 13 Discussion: https://postgr.es/m/17372-bf3b6e947e35ae77%40postgresql.org
Diffstat (limited to 'src/backend/parser/parse_node.c')
0 files changed, 0 insertions, 0 deletions