forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9d3ebba
committed
pgstat: Create memory contexts below TopMemoryContext
So far they were created below CacheMemoryContext. However, that's notguaranteed to exist in all situations, leading to memory contexts created astop-level contexts. There isn't actually a good reason anymore to create thembelow CacheMemoryContext, so just creating them below TopMemoryContext seemsthe best approach.Reported-by: Reid Thompson <reid.thompson@crunchydata.com>Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Reviewed-by: Andres Freund <andres@anarazel.de>Author: "Drouvot, Bertrand" <bdrouvot@amazon.com>Discussion:https://postgr.es/m/b948b729-42fe-f88c-2f4a-0e65d84c049b@amazon.comBackpatch: 15-1 parentfdd8937 commit9d3ebba
2 files changed
+3
-3
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1069 | 1069 |
| |
1070 | 1070 |
| |
1071 | 1071 |
| |
1072 |
| - | |
| 1072 | + | |
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
992 | 992 |
| |
993 | 993 |
| |
994 | 994 |
| |
995 |
| - | |
| 995 | + | |
996 | 996 |
| |
997 | 997 |
| |
998 | 998 |
| |
999 | 999 |
| |
1000 |
| - | |
| 1000 | + | |
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 | 1003 |
|
0 commit comments
Comments
(0)