forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcd35e9d
committed
Some infrastructure changes for the upcoming auto-explain contrib module:
* Refactor explain.c slightly to export a convenient-to-use subroutinefor printing EXPLAIN results.* Provide hooks for plugins to get control at ExecutorStart and ExecutorEndas well as ExecutorRun.* Add some minimal support for tracking the total runtime of ExecutorRun.This code won't actually do anything unless a plugin prods it to.* Change the API of the DefineCustomXXXVariable functions to allow nonzero"flags" to be specified for a custom GUC variable. While at it, also makethe "bootstrap" default value for custom GUCs be explicitly specified as aparameter to these functions. This is to eliminate confusion over where thedefault comes from, as has been expressed in the past by some users of thecustom-variable facility.* Refactor GUC code a bit to ensure that a custom variable gets initialized tosomething valid (like its default value) even if the placeholder value wasinvalid.1 parent667685c commitcd35e9d
File tree
10 files changed
+293
-170
lines changed- src
- backend
- commands
- executor
- tcop
- utils/misc
- include
- commands
- executor
- utils
- pl/plperl
10 files changed
+293
-170
lines changedLines changed: 32 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 |
| - | |
228 | 227 |
| |
229 | 228 |
| |
230 | 229 |
| |
| |||
265 | 264 |
| |
266 | 265 |
| |
267 | 266 |
| |
268 |
| - | |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
| 267 | + | |
275 | 268 |
| |
276 |
| - | |
277 |
| - | |
278 |
| - | |
| 269 | + | |
279 | 270 |
| |
280 | 271 |
| |
281 | 272 |
| |
| |||
290 | 281 |
| |
291 | 282 |
| |
292 | 283 |
| |
293 |
| - | |
| 284 | + | |
294 | 285 |
| |
295 | 286 |
| |
296 | 287 |
| |
| |||
335 | 326 |
| |
336 | 327 |
| |
337 | 328 |
| |
338 |
| - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
339 | 357 |
| |
340 | 358 |
| |
341 | 359 |
| |
|
Lines changed: 41 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
64 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 |
| |
66 | 68 |
| |
67 | 69 |
| |
| |||
129 | 131 |
| |
130 | 132 |
| |
131 | 133 |
| |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 |
| |
133 | 140 |
| |
134 | 141 |
| |
135 | 142 |
| |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
136 | 152 |
| |
137 | 153 |
| |
138 | 154 |
| |
| |||
263 | 279 |
| |
264 | 280 |
| |
265 | 281 |
| |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
266 | 286 |
| |
267 | 287 |
| |
268 | 288 |
| |
| |||
298 | 318 |
| |
299 | 319 |
| |
300 | 320 |
| |
| 321 | + | |
| 322 | + | |
| 323 | + | |
301 | 324 |
| |
302 | 325 |
| |
303 | 326 |
| |
| |||
306 | 329 |
| |
307 | 330 |
| |
308 | 331 |
| |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
309 | 337 |
| |
310 | 338 |
| |
311 | 339 |
| |
312 | 340 |
| |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
313 | 350 |
| |
314 | 351 |
| |
315 | 352 |
| |
| |||
353 | 390 |
| |
354 | 391 |
| |
355 | 392 |
| |
| 393 | + | |
356 | 394 |
| |
357 | 395 |
| |
358 | 396 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
| |||
110 | 111 |
| |
111 | 112 |
| |
112 | 113 |
| |
| 114 | + | |
113 | 115 |
| |
114 | 116 |
| |
115 | 117 |
| |
|
0 commit comments
Comments
(0)