aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexport.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
commit2dcd92e97dfa8c5808bcb6ee0f21327a052eac96 (patch)
tree84a072288f5fb32c332625e4de994f9aef1b16f0 /src/backend/regex/regexport.c
parent2110162206b013e85c3c8caefb8f8913f32e9b6d (diff)
downloadpostgresql-2dcd92e97dfa8c5808bcb6ee0f21327a052eac96.tar.gz
postgresql-2dcd92e97dfa8c5808bcb6ee0f21327a052eac96.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/regex/regexport.c')
0 files changed, 0 insertions, 0 deletions