Initialize t_self and t_tableOid in statext_expressions_load

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: 20661c15db8f430d4880ba685e6b12afa271c1ac
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2021-04-13T22:46:12Z
Releases: 14.0
Initialize t_self and t_tableOid in statext_expressions_load

The function is building a fake heap tuple, but left some of the header
fields (tid and table OID) uninitialized. Per Coverity report.

Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQApj6h8tZ0-eP5Af5PKc5NG1YUc7=SdN_99YoHS51fKa0Q@mail.gmail.com

Files

PathChange+/−
src/backend/statistics/extended_stats.c modified +2 −0

Discussion