Initialize t_self and t_tableOid in statext_expressions_load
authorTomas Vondra <tomas.vondra@postgresql.org>
Tue, 13 Apr 2021 22:46:12 +0000 (00:46 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Tue, 13 Apr 2021 22:46:12 +0000 (00:46 +0200)
commit20661c15db8f430d4880ba685e6b12afa271c1ac
tree0e05180d7b9fe57c90516477aaacb2072a2fd274
parent60f1f09ff44308667ef6c72fbafd68235e55ae27
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
src/backend/statistics/extended_stats.c