pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

Explain in the Query tool executes the query instead of explaining its plan

Open oalesins opened this issue 2 months ago • 0 comments

Describe the bug

Explain in the Query tool executes the query instead of explaining its plan - both with clicking the "E" icon and pressing the F7 button.

To Reproduce

Write some query in the Query tool.

Write one more query query in the Query tool, put a cursor inside any of these 2 queries and try to explain its plan either by clicking the куызуешму icon or pressing F7.

If the query text is selected things work properly - query plan is explained.

If there is only one query in the Query tool things work properly - query plan is explained and query isn't executed.

Expected behavior

  1. (must) Explain doesn't cause query execution regardless of if the query text is selected.
  2. (should) Explain explains plan for the "current" query regardless if its text is selected ("current" here denotes a query which will be executed by "Execute query:).

PGAdmin 9.9, Windows

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10, OSX monterey]
  • pgAdmin version: [e.g. 6.15]
  • Mode: [e.g Desktop or Server]
  • Browser (if running in server mode): [e.g. chrome, safari]
  • Package type: [e.g. RPM, DEB, Python, Container, etc.]

Additional context

Add any other context about the problem here.

oalesins avatar Oct 28 '25 15:10 oalesins