diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2022-01-23 02:49:41 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2022-01-23 03:16:31 +0100 |
commit | 6d554e3fcd6fb8be2dbcbd3521e2947ed7a552cb (patch) | |
tree | 1abf76faf083fabb763058782990558743765bcc /src/backend/access/gist/gist.c | |
parent | 62e28097cebf99533bd0badd6f3c6ce9db9f1497 (diff) | |
download | postgresql-6d554e3fcd6fb8be2dbcbd3521e2947ed7a552cb.tar.gz postgresql-6d554e3fcd6fb8be2dbcbd3521e2947ed7a552cb.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/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions