forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf197272
committed
Make EXPLAIN ANALYZE report the numbers of rows rejected by filter steps.
This provides information about the numbers of tuples that were visitedbut not returned by table scans, as well as the numbers of join tuplesthat were considered and discarded within a join plan node.There is still some discussion going on about the best way to report countsfor outer-join situations, but I think most of what's in the patch wouldnot change if we revise that, so I'm going to go ahead and commit it as-is.Documentation changes to follow (they weren't in the submitted patcheither).Marko Tiikkaja, reviewed by Marc Cousin, somewhat revised by Tom1 parent4893552 commitf197272
File tree
20 files changed
+144
-20
lines changed- src
- backend
- commands
- executor
- include
- executor
- nodes
20 files changed
+144
-20
lines changedLines changed: 78 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
| |||
76 | 75 |
| |
77 | 76 |
| |
78 | 77 |
| |
| 78 | + | |
| 79 | + | |
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
| |||
1000 | 1001 |
| |
1001 | 1002 |
| |
1002 | 1003 |
| |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
1003 | 1007 |
| |
1004 | 1008 |
| |
1005 | 1009 |
| |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1006 | 1013 |
| |
1007 | 1014 |
| |
1008 | 1015 |
| |
| |||
1011 | 1018 |
| |
1012 | 1019 |
| |
1013 | 1020 |
| |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1014 | 1024 |
| |
1015 | 1025 |
| |
1016 | 1026 |
| |
1017 | 1027 |
| |
1018 | 1028 |
| |
1019 | 1029 |
| |
1020 | 1030 |
| |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1021 | 1034 |
| |
1022 | 1035 |
| |
1023 | 1036 |
| |
1024 | 1037 |
| |
1025 | 1038 |
| |
1026 | 1039 |
| |
1027 | 1040 |
| |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1028 | 1044 |
| |
1029 | 1045 |
| |
1030 | 1046 |
| |
| |||
1038 | 1054 |
| |
1039 | 1055 |
| |
1040 | 1056 |
| |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1041 | 1060 |
| |
1042 | 1061 |
| |
1043 | 1062 |
| |
1044 | 1063 |
| |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1045 | 1067 |
| |
1046 | 1068 |
| |
1047 | 1069 |
| |
1048 | 1070 |
| |
1049 | 1071 |
| |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1050 | 1075 |
| |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1051 | 1079 |
| |
1052 | 1080 |
| |
1053 | 1081 |
| |
1054 | 1082 |
| |
1055 | 1083 |
| |
1056 | 1084 |
| |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1057 | 1088 |
| |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1058 | 1092 |
| |
1059 | 1093 |
| |
1060 | 1094 |
| |
1061 | 1095 |
| |
1062 | 1096 |
| |
1063 | 1097 |
| |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1064 | 1101 |
| |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1065 | 1105 |
| |
1066 | 1106 |
| |
1067 | 1107 |
| |
1068 | 1108 |
| |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1069 | 1112 |
| |
1070 | 1113 |
| |
1071 | 1114 |
| |
| |||
1079 | 1122 |
| |
1080 | 1123 |
| |
1081 | 1124 |
| |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1082 | 1128 |
| |
1083 | 1129 |
| |
1084 | 1130 |
| |
| |||
1508 | 1554 |
| |
1509 | 1555 |
| |
1510 | 1556 |
| |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1511 | 1588 |
| |
1512 | 1589 |
| |
1513 | 1590 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 | 16 |
| |
18 | 17 |
| |
19 | 18 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 | 80 |
| |
82 | 81 |
| |
83 | 82 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
| 222 | + | |
| 223 | + | |
222 | 224 |
| |
223 | 225 |
| |
224 | 226 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
| |||
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
40 |
| - | |
| 42 | + | |
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
| |||
52 | 54 |
| |
53 | 55 |
| |
54 | 56 |
| |
55 |
| - | |
56 |
| - | |
| 57 | + | |
| 58 | + | |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| |||
77 | 79 |
| |
78 | 80 |
| |
79 | 81 |
| |
80 |
| - | |
81 |
| - | |
| 82 | + | |
| 83 | + | |
82 | 84 |
| |
83 | 85 |
| |
84 | 86 |
| |
| |||
119 | 121 |
| |
120 | 122 |
| |
121 | 123 |
| |
| 124 | + | |
122 | 125 |
| |
123 | 126 |
| |
124 | 127 |
| |
125 | 128 |
| |
126 | 129 |
| |
127 |
| - | |
128 | 130 |
| |
129 | 131 |
| |
130 | 132 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1204 | 1204 |
| |
1205 | 1205 |
| |
1206 | 1206 |
| |
| 1207 | + | |
| 1208 | + | |
1207 | 1209 |
| |
1208 | 1210 |
| |
1209 | 1211 |
| |
| |||
1354 | 1356 |
| |
1355 | 1357 |
| |
1356 | 1358 |
| |
| 1359 | + | |
| 1360 | + | |
1357 | 1361 |
| |
1358 | 1362 |
| |
1359 | 1363 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
| 281 | + | |
281 | 282 |
| |
282 | 283 |
| |
283 | 284 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 | 25 |
| |
27 | 26 |
| |
28 | 27 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
| 121 | + | |
| 122 | + | |
121 | 123 |
| |
122 | 124 |
| |
123 | 125 |
| |
| |||
179 | 181 |
| |
180 | 182 |
| |
181 | 183 |
| |
| 184 | + | |
| 185 | + | |
182 | 186 |
| |
183 | 187 |
| |
184 | 188 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 | 31 |
| |
33 | 32 |
| |
34 | 33 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
325 | 325 |
| |
326 | 326 |
| |
327 | 327 |
| |
| 328 | + | |
| 329 | + | |
328 | 330 |
| |
| 331 | + | |
| 332 | + | |
329 | 333 |
| |
330 | 334 |
| |
331 | 335 |
| |
| |||
360 | 364 |
| |
361 | 365 |
| |
362 | 366 |
| |
| 367 | + | |
| 368 | + | |
363 | 369 |
| |
364 | 370 |
| |
365 | 371 |
| |
| |||
397 | 403 |
| |
398 | 404 |
| |
399 | 405 |
| |
| 406 | + | |
| 407 | + | |
400 | 408 |
| |
401 | 409 |
| |
402 | 410 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 |
| |
101 | 105 |
| |
102 | 106 |
| |
|
0 commit comments
Comments
(0)