Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Couldn't parse plan": hint clueless users that swap fields #472

Closed
Krysztophe opened this issue Apr 1, 2022 · 1 comment
Closed

"Couldn't parse plan": hint clueless users that swap fields #472

Krysztophe opened this issue Apr 1, 2022 · 1 comment

Comments

@Krysztophe
Copy link

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 🙄 )

@Krysztophe 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
@pgiraud
Copy link
Member

pgiraud commented Aug 22, 2024

Closing as won't fix.

The new "couln't parse" message showing the failing plan may help.

@pgiraud pgiraud closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants