forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2dcd92e
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 parent2110162 commit2dcd92e
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1409 | 1409 |
| |
1410 | 1410 |
| |
1411 | 1411 |
| |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
1412 | 1416 |
| |
1413 | 1417 |
| |
1414 | 1418 |
| |
| |||
1542 | 1546 |
| |
1543 | 1547 |
| |
1544 | 1548 |
| |
1545 |
| - | |
1546 |
| - | |
1547 | 1549 |
| |
1548 | 1550 |
| |
1549 | 1551 |
| |
|
0 commit comments
Comments
(0)