forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit65266d9
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 parent8d684c4 commit65266d9
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1241 | 1241 |
| |
1242 | 1242 |
| |
1243 | 1243 |
| |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1244 | 1248 |
| |
1245 | 1249 |
| |
1246 | 1250 |
| |
| |||
1374 | 1378 |
| |
1375 | 1379 |
| |
1376 | 1380 |
| |
1377 |
| - | |
1378 |
| - | |
1379 | 1381 |
| |
1380 | 1382 |
| |
1381 | 1383 |
| |
|
0 commit comments
Comments
(0)