forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1e24cf6
committed
Don't leave pg_hba and pg_ident data lying around in running backends.
Free the contexts holding this data after we're done using it, by theexpedient of attaching them to the PostmasterContext which we werealready taking care to delete (and where, indeed, this data used to livebefore commitse5e2fc8 and7c45e3a). This saves aprobably-usually-negligible amount of space per running backend. It alsoavoids leaving potentially-security-sensitive data lying around in memoryin processes that don't need it. You'd have to be unusually paranoid tothink that that amounts to a live security bug, so I've not gone so far asto forcibly zero the memory; but there surely isn't a good reason to keepthis data around.Arguably this is a memory management bug in the aforementioned commits,but it doesn't seem important enough to back-patch.1 parentd7c19d6 commit1e24cf6
2 files changed
+18
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
389 |
| - | |
| 389 | + | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| |||
1770 | 1770 |
| |
1771 | 1771 |
| |
1772 | 1772 |
| |
1773 |
| - | |
| 1773 | + | |
| 1774 | + | |
1774 | 1775 |
| |
1775 | 1776 |
| |
1776 | 1777 |
| |
| |||
2147 | 2148 |
| |
2148 | 2149 |
| |
2149 | 2150 |
| |
2150 |
| - | |
| 2151 | + | |
| 2152 | + | |
2151 | 2153 |
| |
2152 | 2154 |
| |
2153 | 2155 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
55 | 56 |
| |
56 | 57 |
| |
57 | 58 |
| |
| |||
190 | 191 |
| |
191 | 192 |
| |
192 | 193 |
| |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
193 | 206 |
| |
194 | 207 |
| |
195 | 208 |
| |
|
0 commit comments
Comments
(0)