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