forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit24f5205
committed
Add some sanity checks in executor for query ID reporting
This commit adds three sanity checks in code paths of the executor whereit is possible to use hooks, checking that a query ID is reported inpg_stat_activity if compute_query_id is enabled:- ExecutorRun()- ExecutorFinish()- ExecutorEnd()This causes the test in pg_stat_statements added in933848d tocomplain immediately in ExecutorRun(). The idea behind this commit isto help extensions to detect if they are missing query ID reports when aquery goes through the executor. Perhaps this will prove to be a badidea, but let's see where this experience goes in v18 and newerversions.Reviewed-by: Sami ImseihDiscussion:https://postgr.es/m/ZuJb5xCKHH0A9tMN@paquier.xyz1 parent4f08ab5 commit24f5205
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
295 | 296 |
| |
296 | 297 |
| |
297 | 298 |
| |
| 299 | + | |
| 300 | + | |
| 301 | + | |
298 | 302 |
| |
299 | 303 |
| |
300 | 304 |
| |
| |||
403 | 407 |
| |
404 | 408 |
| |
405 | 409 |
| |
| 410 | + | |
| 411 | + | |
| 412 | + | |
406 | 413 |
| |
407 | 414 |
| |
408 | 415 |
| |
| |||
463 | 470 |
| |
464 | 471 |
| |
465 | 472 |
| |
| 473 | + | |
| 474 | + | |
| 475 | + | |
466 | 476 |
| |
467 | 477 |
| |
468 | 478 |
| |
|
0 commit comments
Comments
(0)