forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0b39231
committed
Avoid memory leak if pgstat_vacuum_stat is interrupted partway through.
The temporary hash tables made by pgstat_collect_oids should be allocatedin a short-term memory context, which is not the default behavior ofhash_create. Noted while looking through hash_create calls in connectionwith Robert Haas' recent complaint.This is a pre-existing bug, but it doesn't seem important enough toback-patch. The hash table is not so large that it would matter unless thishappened many times within a session, which seems quite unlikely.1 parentd4d1885 commit0b39231
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
1033 | 1033 |
| |
1034 | 1034 |
| |
1035 | 1035 |
| |
1036 |
| - | |
| 1036 | + | |
| 1037 | + | |
1037 | 1038 |
| |
1038 | 1039 |
| |
1039 | 1040 |
| |
| |||
1049 | 1050 |
| |
1050 | 1051 |
| |
1051 | 1052 |
| |
| 1053 | + | |
1052 | 1054 |
| |
1053 | 1055 |
| |
1054 | 1056 |
| |
1055 |
| - | |
| 1057 | + | |
1056 | 1058 |
| |
1057 | 1059 |
| |
1058 | 1060 |
| |
|
0 commit comments
Comments
(0)