forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6f7ca62
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 parentdf567fb commit6f7ca62
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1391 | 1391 |
| |
1392 | 1392 |
| |
1393 | 1393 |
| |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1394 | 1398 |
| |
1395 | 1399 |
| |
1396 | 1400 |
| |
| |||
1524 | 1528 |
| |
1525 | 1529 |
| |
1526 | 1530 |
| |
1527 |
| - | |
1528 |
| - | |
1529 | 1531 |
| |
1530 | 1532 |
| |
1531 | 1533 |
| |
|
0 commit comments
Comments
(0)