aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-03-31 10:08:40 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-03-31 10:08:40 -0400
commitd0d92fe3d49934042f64539ccf2bb33c5f82158a (patch)
tree0024b8efb32b954b55595adbe5d4db17360ec5a7 /src/tutorial/basics.source
parent33510bc64919b980433440340bc154e90af64e73 (diff)
downloadpostgresql-d0d92fe3d49934042f64539ccf2bb33c5f82158a.tar.gz
postgresql-d0d92fe3d49934042f64539ccf2bb33c5f82158a.zip
Ensure acquire_inherited_sample_rows sets its output parameters.
The totalrows/totaldeadrows outputs were left uninitialized in cases where we find no analyzable child tables of a partitioned table. This could lead to setting the partitioned table's pg_class.reltuples value to garbage. It's not clear that that would have any very bad effects in practice, but fix it anyway because it's making valgrind unhappy. Reported and diagnosed by Alexander Lakhin (bug #17880). Discussion: https://postgr.es/m/17880-9282037c923d856e@postgresql.org
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions