forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit33e05f8

Amit Kapila
Add the option to report WAL usage in EXPLAIN and auto_explain.
This commit adds a new option WAL similar to existing option BUFFERS in theEXPLAIN command. This option allows to include information on WAL recordgeneration added by commitdf3b181 in EXPLAIN output.This also allows the WAL usage information to be displayed viathe auto_explain module. A new parameter auto_explain.log_wal controlswhether WAL usage statistics are printed when an execution plan is logged.This parameter has no effect unless auto_explain.log_analyze is enabled.Author: Julien RouhaudReviewed-by: Dilip Kumar and Amit KapilaDiscussion:https://postgr.es/m/CAB-hujrP8ZfUkvL5OYETipQwA=e3n7oqHFU=4ZLxWS_Cza3kQQ@mail.gmail.com1 parenta40caf5 commit33e05f8
File tree
6 files changed
+124
-6
lines changed- contrib/auto_explain
- doc/src/sgml
- ref
- src
- backend/commands
- bin/psql
- include/commands
6 files changed
+124
-6
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
148 | 149 |
| |
149 | 150 |
| |
150 | 151 |
| |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
151 | 163 |
| |
152 | 164 |
| |
153 | 165 |
| |
| |||
280 | 292 |
| |
281 | 293 |
| |
282 | 294 |
| |
| 295 | + | |
| 296 | + | |
283 | 297 |
| |
284 | 298 |
| |
285 | 299 |
| |
| |||
374 | 388 |
| |
375 | 389 |
| |
376 | 390 |
| |
| 391 | + | |
377 | 392 |
| |
378 | 393 |
| |
379 | 394 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
112 | 132 |
| |
113 | 133 |
| |
114 | 134 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
192 | 193 |
| |
193 | 194 |
| |
194 | 195 |
| |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
195 | 209 |
| |
196 | 210 |
| |
197 | 211 |
| |
|
Lines changed: 70 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| 116 | + | |
116 | 117 |
| |
117 | 118 |
| |
118 | 119 |
| |
| |||
175 | 176 |
| |
176 | 177 |
| |
177 | 178 |
| |
| 179 | + | |
| 180 | + | |
178 | 181 |
| |
179 | 182 |
| |
180 | 183 |
| |
| |||
219 | 222 |
| |
220 | 223 |
| |
221 | 224 |
| |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
222 | 230 |
| |
223 | 231 |
| |
224 | 232 |
| |
| |||
506 | 514 |
| |
507 | 515 |
| |
508 | 516 |
| |
| 517 | + | |
| 518 | + | |
509 | 519 |
| |
510 | 520 |
| |
511 | 521 |
| |
| |||
1970 | 1980 |
| |
1971 | 1981 |
| |
1972 | 1982 |
| |
1973 |
| - | |
| 1983 | + | |
1974 | 1984 |
| |
1975 | 1985 |
| |
| 1986 | + | |
| 1987 | + | |
1976 | 1988 |
| |
1977 |
| - | |
1978 |
| - | |
| 1989 | + | |
| 1990 | + | |
1979 | 1991 |
| |
1980 | 1992 |
| |
1981 | 1993 |
| |
| |||
1988 | 2000 |
| |
1989 | 2001 |
| |
1990 | 2002 |
| |
1991 |
| - | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
1992 | 2007 |
| |
1993 | 2008 |
| |
1994 | 2009 |
| |
| |||
3087 | 3102 |
| |
3088 | 3103 |
| |
3089 | 3104 |
| |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
3090 | 3143 |
| |
3091 | 3144 |
| |
3092 | 3145 |
| |
| |||
3871 | 3924 |
| |
3872 | 3925 |
| |
3873 | 3926 |
| |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
3874 | 3940 |
| |
3875 | 3941 |
| |
3876 | 3942 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3045 | 3045 |
| |
3046 | 3046 |
| |
3047 | 3047 |
| |
3048 |
| - | |
3049 |
| - | |
| 3048 | + | |
| 3049 | + | |
3050 | 3050 |
| |
3051 | 3051 |
| |
3052 | 3052 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
| |||
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
| 115 | + | |
| 116 | + | |
114 | 117 |
| |
115 | 118 |
| |
116 | 119 |
| |
|
0 commit comments
Comments
(0)