forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ebb69f
committed
Fix some infelicities in EXPLAIN output for parallel query plans.
In non-text output formats, parallelized aggregates were reporting"Partial" or "Finalize" as a field named "Operation", which might be allright in the absence of any context --- but other plan node types use thatfield to report SQL-visible semantics, such as Select/Insert/Update/Delete.So that naming choice didn't seem good to me. I changed it to "PartialMode".Also, the field did not appear at all for a non-parallelized Agg plan node,which is contrary to expectation in non-text formats. We're notionallyproducing objects that conform to a schema, so the set of fields for agiven node type and EXPLAIN mode should be well-defined. I set it up tofill in "Simple" in such cases.Other fields that were added for parallel query, namely "Parallel Aware"and Gather's "Single Copy", had not gotten the word on that point either.Make them appear always in non-text output.Also, the latter two fields were nominally producing boolean output, butwere getting it wrong, because bool values shouldn't be quoted in JSON orYAML. Somehow we'd not needed an ExplainPropertyBool formatting subroutinebefore 9.6; but now we do, so invent it.Discussion: <16002.1466972724@sss.pgh.pa.us>1 parent0584df3 commit8ebb69f
File tree
3 files changed
+33
-15
lines changed- src
- backend/commands
- include/commands
- test/regress/expected
3 files changed
+33
-15
lines changedLines changed: 28 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
807 | 807 |
| |
808 | 808 |
| |
809 | 809 |
| |
| 810 | + | |
810 | 811 |
| |
811 | 812 |
| |
812 | 813 |
| |
| |||
943 | 944 |
| |
944 | 945 |
| |
945 | 946 |
| |
946 |
| - | |
947 | 947 |
| |
948 | 948 |
| |
949 | 949 |
| |
950 |
| - | |
951 |
| - | |
952 |
| - | |
953 |
| - | |
954 |
| - | |
| 950 | + | |
955 | 951 |
| |
956 | 952 |
| |
957 | 953 |
| |
| |||
972 | 968 |
| |
973 | 969 |
| |
974 | 970 |
| |
975 |
| - | |
976 |
| - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
977 | 983 |
| |
978 | 984 |
| |
979 | 985 |
| |
| |||
1042 | 1048 |
| |
1043 | 1049 |
| |
1044 | 1050 |
| |
| 1051 | + | |
| 1052 | + | |
1045 | 1053 |
| |
1046 | 1054 |
| |
1047 | 1055 |
| |
| |||
1050 | 1058 |
| |
1051 | 1059 |
| |
1052 | 1060 |
| |
1053 |
| - | |
1054 |
| - | |
| 1061 | + | |
1055 | 1062 |
| |
1056 | 1063 |
| |
1057 | 1064 |
| |
| |||
1349 | 1356 |
| |
1350 | 1357 |
| |
1351 | 1358 |
| |
1352 |
| - | |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
| 1359 | + | |
| 1360 | + | |
1356 | 1361 |
| |
1357 | 1362 |
| |
1358 | 1363 |
| |
| |||
3031 | 3036 |
| |
3032 | 3037 |
| |
3033 | 3038 |
| |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
3034 | 3048 |
| |
3035 | 3049 |
| |
3036 | 3050 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
96 | 98 |
| |
97 | 99 |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| 208 | + | |
208 | 209 |
| |
209 | 210 |
| |
210 | 211 |
| |
| |||
213 | 214 |
| |
214 | 215 |
| |
215 | 216 |
| |
216 |
| - | |
| 217 | + | |
| 218 | + | |
217 | 219 |
| |
218 | 220 |
| |
219 | 221 |
| |
|
0 commit comments
Comments
(0)