forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0266a9c
committed
Prevent auto_explain from changing the output of a user's EXPLAIN.
Commitaf7914c, which introduced theEXPLAIN (TIMING) option, for some reason coded explain.c to look atplanstate->instrument->need_timer rather than es->timing to decidewhether to print timing info. However, the former flag might get setas a result of contrib/auto_explain wanting timing information. Wecertainly don't want activation of auto_explain to change user-visiblestatement behavior, so fix that.Also fix an independent bug introduced in the same patch: in the codepath for a never-executed node with a machine-friendly output format,if timing was selected, it would fail to print the Actual Rows and ActualLoops items.Per bug #10404 from Tomonari Katsumata. Back-patch to 9.2 where thefaulty code was introduced.1 parente0c04b7 commit0266a9c
1 file changed
+16
-11
lines changedLines changed: 16 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 | 1147 |
| |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1148 | 1154 |
| |
1149 | 1155 |
| |
1150 | 1156 |
| |
1151 | 1157 |
| |
1152 |
| - | |
| 1158 | + | |
| 1159 | + | |
1153 | 1160 |
| |
1154 | 1161 |
| |
1155 | 1162 |
| |
| |||
1158 | 1165 |
| |
1159 | 1166 |
| |
1160 | 1167 |
| |
1161 |
| - | |
| 1168 | + | |
1162 | 1169 |
| |
1163 | 1170 |
| |
1164 | 1171 |
| |
| |||
1169 | 1176 |
| |
1170 | 1177 |
| |
1171 | 1178 |
| |
1172 |
| - | |
| 1179 | + | |
1173 | 1180 |
| |
1174 | 1181 |
| |
1175 | 1182 |
| |
| |||
1180 | 1187 |
| |
1181 | 1188 |
| |
1182 | 1189 |
| |
1183 |
| - | |
1184 | 1190 |
| |
1185 | 1191 |
| |
1186 |
| - | |
1187 |
| - | |
1188 |
| - | |
1189 |
| - | |
1190 |
| - | |
1191 | 1192 |
| |
1192 | 1193 |
| |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1193 | 1199 |
| |
1194 | 1200 |
| |
1195 | 1201 |
| |
1196 |
| - | |
1197 | 1202 |
| |
1198 | 1203 |
| |
1199 | 1204 |
| |
| |||
1362 | 1367 |
| |
1363 | 1368 |
| |
1364 | 1369 |
| |
1365 |
| - | |
| 1370 | + | |
1366 | 1371 |
| |
1367 | 1372 |
| |
1368 | 1373 |
| |
|
0 commit comments
Comments
(0)