forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd0d92fe
committed
Ensure acquire_inherited_sample_rows sets its output parameters.
The totalrows/totaldeadrows outputs were left uninitialized in caseswhere we find no analyzable child tables of a partitioned table. Thiscould lead to setting the partitioned table's pg_class.reltuples valueto garbage. It's not clear that that would have any very bad effectsin 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.org1 parent33510bc commitd0d92fe
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1206 | 1206 |
| |
1207 | 1207 |
| |
1208 | 1208 |
| |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
1209 | 1213 |
| |
1210 | 1214 |
| |
1211 | 1215 |
| |
| |||
1337 | 1341 |
| |
1338 | 1342 |
| |
1339 | 1343 |
| |
1340 |
| - | |
1341 |
| - | |
1342 | 1344 |
| |
1343 | 1345 |
| |
1344 | 1346 |
| |
|
0 commit comments
Comments
(0)