You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user swaps the Plan and Query fields (ie: he puts EXPLAIN SELECT 1 ; in Plan, and QUERY PLAN .... and so on in Query, which is after all the most intuitive way when copy-pasting both query and plan in a hurry), the result is simply « Couldn't parse plan ».
To avoid to lose time to try reformatting a perfectly fine plan, it is possible to add a message like this in the error box ?
Did you put a SQL query in the Plan field?
This is not possible to detect all possible cases, but these are the most current symptoms:
QUERY PLAN, (cost=, rows=width= are present in the Query field
SELECT, EXPLAIN, UPDATE, INSERT, WITH is the 1st word of the Plan field
=# or ; appear in the Plan field.
(Please don't ask why I came to this idea 🙄 )
The text was updated successfully, but these errors were encountered:
Krysztophe
changed the title
"Couldn't parse plan": help clueless users that swap fields
"Couldn't parse plan": hint clueless users that swap fields
Apr 1, 2022
If a user swaps the Plan and Query fields (ie: he puts
EXPLAIN SELECT 1 ;
in Plan, andQUERY PLAN ....
and so on in Query, which is after all the most intuitive way when copy-pasting both query and plan in a hurry), the result is simply « Couldn't parse plan ».To avoid to lose time to try reformatting a perfectly fine plan, it is possible to add a message like this in the error box ?
This is not possible to detect all possible cases, but these are the most current symptoms:
QUERY PLAN
,(cost=
,rows=
width=
are present in the Query fieldSELECT
,EXPLAIN
,UPDATE
,INSERT
,WITH
is the 1st word of the Plan field=#
or;
appear in the Plan field.(Please don't ask why I came to this idea 🙄 )
The text was updated successfully, but these errors were encountered: