- Notifications
You must be signed in to change notification settings - Fork5k
Commitd9e0386
committed
Make levels 1-based in pg_log_backend_memory_contexts()
Both pg_get_process_memory_contexts() and pg_backend_memory_contextshave 1-based levels, whereas pg_log_backend_memory_contexts() was using0-based levels. Align these.This results in slightly saner behavior from MemoryContextStatsDetail()in regards to the max_level. Previously it would stop at 1 level beforethe maximum requested level rather than at that level.Reported-by: Atsushi Torikoshi <torikoshia@oss.nttdata.com>Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>Author: David Rowley <drowleyml@gmail.comReviewed-by: Melih Mutlu <m.melihmutlu@gmail.com>Reviewed-by: Rahila Syed <rahilasyed90@gmail.com>Discussion:https://postgr.es/m/395ea5d4fe190480efa95bf533485c70@oss.nttdata.com1 parentfc5e966 commitd9e0386
1 file changed
+5
-6
lines changedLines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
873 | 873 |
| |
874 | 874 |
| |
875 | 875 |
| |
876 |
| - | |
| 876 | + | |
877 | 877 |
| |
878 | 878 |
| |
879 | 879 |
| |
| |||
968 | 968 |
| |
969 | 969 |
| |
970 | 970 |
| |
971 |
| - | |
| 971 | + | |
972 | 972 |
| |
973 | 973 |
| |
974 | 974 |
| |
| |||
1003 | 1003 |
| |
1004 | 1004 |
| |
1005 | 1005 |
| |
1006 |
| - | |
| 1006 | + | |
1007 | 1007 |
| |
1008 | 1008 |
| |
1009 | 1009 |
| |
| |||
1104 | 1104 |
| |
1105 | 1105 |
| |
1106 | 1106 |
| |
1107 |
| - | |
| 1107 | + | |
1108 | 1108 |
| |
1109 | 1109 |
| |
1110 | 1110 |
| |
| |||
1585 | 1585 |
| |
1586 | 1586 |
| |
1587 | 1587 |
| |
1588 |
| - | |
1589 | 1588 |
| |
1590 | 1589 |
| |
1591 | 1590 |
| |
1592 | 1591 |
| |
1593 |
| - | |
| 1592 | + | |
1594 | 1593 |
| |
1595 | 1594 |
| |
1596 | 1595 |
| |
|
0 commit comments
Comments
(0)