forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1acf105
committed
Fix temporary memory leak in system table index scans
Commit811af97 introduced palloc() calls into systable_beginscan()and systable_beginscan_ordered(). But there was no pfree(), as is theusual style.It turns out that an ANALYZE of a partitioned table can invoke manythousand system table index scans, and this memory is not cleaned upuntil the end of the command, so this can temporarily leak quite a bitof memory. Maybe there are improvements to be made at a higher levelabout this, but for now, insert a couple of corresponding pfree()calls to fix this particular issue.Reported-by: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://www.postgresql.org/message-id/Z0XTfIq5xUtbkiIh@pryzbyj20231 parent1ba0782 commit1acf105
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| |||
713 | 715 | | |
714 | 716 | | |
715 | 717 | | |
| 718 | + | |
| 719 | + | |
716 | 720 | | |
717 | 721 | | |
718 | 722 | | |
| |||
0 commit comments
Comments
(0)