@@ -5,25 +5,29 @@ Functions:
5
5
setof (name text, level integer, nblocks bigint, freechunks bigint,
6
6
totalspace bigint, freespace bigint)
7
7
local_memory_stats()
8
- prints memory context's statistic for current backend
8
+
9
+ prints memory context's statistic for current backend
9
10
10
11
setof (pid integer, name text, level integer, nblocks bigint, freechunks bigint,
11
12
totalspace bigint, freespace bigint)
12
- instance_memory_stats()
13
- prints memory context's statistic for all alive backend, works if library
14
- was preloaded via shared_preload_libraries.
13
+ instance_memory_stats()
14
+
15
+ prints memory context's statistic for all alive backend, works if library
16
+ was preloaded via shared_preload_libraries.
15
17
16
18
view memory_stats
17
- prints per backend summary memory statistics
19
+
20
+ prints per backend summary memory statistics
18
21
19
22
To use instance_memory_stats() it's needed to add memstat library to
20
23
shared_preload_libraries. And it should be last in that list!
21
24
22
25
GUC variable:
23
- memstat.period = 10 # seconds
24
26
25
- Module collects memory statistics at a begining of each query and
26
- it could be expensive on highloaded instances, so, this variable
27
- set minimal time between statistic obtaining.
27
+ memstat.period = 10 # seconds
28
+
29
+ Module collects memory statistics at a begining of each query and
30
+ it could be expensive on highloaded instances, so, this variable
31
+ set minimal time between statistic obtaining.
28
32
29
33
Copyright (c) 2016, Teodor Sigaev
< [email protected] >
0 commit comments