aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/float.c
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
commitc2d7d679c1220af77023413b031902afe4d2fdd1 (patch)
treeee646d5fb29e4dd4230cd91cded56b4edb5c7ed4 /src/backend/utils/adt/float.c
parent558fff0adfa02b6db6b003c64cca75e55f5187e2 (diff)
downloadpostgresql-c2d7d679c1220af77023413b031902afe4d2fdd1.tar.gz
postgresql-c2d7d679c1220af77023413b031902afe4d2fdd1.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/backend/utils/adt/float.c')
0 files changed, 0 insertions, 0 deletions