forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf9b1a0d
committed
Expose explain's SUMMARY option
This exposes the existing explain summary option to users to allow themto choose if they wish to have the planning time and totalled run timeincluded in the EXPLAIN result. The existing default behavior isretained if SUMMARY is not specified- running explain without analyzewill not print the summary lines (just the planning time, currently)while running explain with analyze will include the summary lines (boththe planning time and the totalled execution time).Users who wish to see the summary information for plain explain can nowuse: EXPLAIN (SUMMARY ON) query; Users who do not want to have thesummary printed for an analyze run can use:EXPLAIN (ANALYZE ON, SUMMARY OFF) query;With this, we can now also have EXPLAIN ANALYZE queries included in ourregression tests by using:EXPLAIN (ANALYZE ON, TIMING OFF, SUMMARY off) query;I went ahead and added an example of this, which will hopefully not makethe buildfarm complain.Author: Ashutosh BapatDiscussion:https://postgr.es/m/CAFjFpReE5z2h98U2Vuia8hcEkpRRwrauRjHmyE44hNv8-xk+XA@mail.gmail.com1 parent15d03e5 commitf9b1a0d
File tree
5 files changed
+52
-4
lines changed- doc/src/sgml/ref
- src
- backend/commands
- test/regress
- expected
- sql
5 files changed
+52
-4
lines changedLines changed: 16 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 |
| |
| |||
196 | 197 |
| |
197 | 198 |
| |
198 | 199 |
| |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
199 | 215 |
| |
200 | 216 |
| |
201 | 217 |
| |
|
Lines changed: 15 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
| 152 | + | |
152 | 153 |
| |
153 | 154 |
| |
154 | 155 |
| |
| |||
168 | 169 |
| |
169 | 170 |
| |
170 | 171 |
| |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
171 | 177 |
| |
172 | 178 |
| |
173 | 179 |
| |
| |||
209 | 215 |
| |
210 | 216 |
| |
211 | 217 |
| |
212 |
| - | |
213 |
| - | |
| 218 | + | |
| 219 | + | |
214 | 220 |
| |
215 | 221 |
| |
216 | 222 |
| |
| |||
571 | 577 |
| |
572 | 578 |
| |
573 | 579 |
| |
574 |
| - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
575 | 587 |
| |
576 | 588 |
| |
577 | 589 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
638 | 638 |
| |
639 | 639 |
| |
640 | 640 |
| |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
641 | 645 |
| |
642 | 646 |
| |
643 | 647 |
| |
| |||
666 | 670 |
| |
667 | 671 |
| |
668 | 672 |
| |
| 673 | + | |
| 674 | + | |
| 675 | + | |
669 | 676 |
| |
670 | 677 |
| |
671 | 678 |
| |
| |||
674 | 681 |
| |
675 | 682 |
| |
676 | 683 |
| |
677 |
| - | |
| 684 | + | |
678 | 685 |
| |
679 | 686 |
| |
680 | 687 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
752 | 752 |
| |
753 | 753 |
| |
754 | 754 |
| |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
755 | 765 |
| |
756 | 766 |
| |
757 | 767 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 |
| |
199 | 202 |
| |
200 | 203 |
| |
|
0 commit comments
Comments
(0)