forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7dcbeca
Make auto_explain print the query identifier in verbose mode
When auto_explain.log_verbose is on, auto_explain should print in thelogs plans equivalent to the EXPLAIN (VERBOSE). However, whencompute_query_id is on, query identifiers were not showing up, beingonly handled by EXPLAIN (VERBOSE). This brings auto_explain on par withEXPLAIN regarding that. Note that like EXPLAIN, auto_explain does notshow the query identifier when compute_query_id=regress.The change is done so as the choice of printing the query identifier isdone in ExplainPrintPlan() rather than in ExplainOnePlan(), to avoid aduplication of the logic dealing with the query ID. auto_explain is theonly in-core caller of ExplainPrintPlan().While looking at the area, I have noticed that more consolidationbetween EXPLAIN and auto_explain would be in order for the logging ofthe plan duration and the buffer usage. This refactoring is left as afuture change.Author: Atsushi TorikoshiReviewed-by: Justin Pryzby, Julien RouhaudDiscussion:https://postgr.es/m/1ea21936981f161bccfce05765c03bee@oss.nttdata.com1 parentc832047 commit7dcbeca
File tree
2 files changed
+45
-16
lines changed- contrib/auto_explain/t
- src/backend/commands
2 files changed
+45
-16
lines changedLines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
109 | 138 |
| |
110 | 139 |
| |
111 | 140 |
| |
|
Lines changed: 16 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
604 | 604 |
| |
605 | 605 |
| |
606 | 606 |
| |
607 |
| - | |
608 |
| - | |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 |
| - | |
615 |
| - | |
616 |
| - | |
617 |
| - | |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 |
| - | |
622 |
| - | |
623 | 607 |
| |
624 | 608 |
| |
625 | 609 |
| |
| |||
791 | 775 |
| |
792 | 776 |
| |
793 | 777 |
| |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
794 | 794 |
| |
795 | 795 |
| |
796 | 796 |
| |
|
0 commit comments
Comments
(0)