8000 Failed to parse plan · Issue #748 · dalibo/pev2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Failed to parse plan #748

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

Open
AndriySysak opened this issue Apr 28, 2025 · 1 comment
Open

Failed to parse plan #748

AndriySysak opened this issue Apr 28, 2025 · 1 comment
Labels

Comments

@AndriySysak
Copy link

SELECT t0.serial
FROM (
SELECT DISTINCT s.serial
FROM serial_number_ranges AS s
) AS t
INNER JOIN (
SELECT t1.id, t1.range_high, t1.range_low, t1.serial
FROM (
SELECT s0.id, s0.range_high, s0.range_low, s0.serial
, ROW_NUMBER() OVER(PARTITION BY s0.serial ORDER BY s0.range_high - s0.range_low DESC) AS row
FROM serial_number_ranges AS s0
) AS t1
WHERE t1.row <= 2
) AS t0 ON t.serial = t0.serial
ORDER BY t0.range_high - t0.range_low DESC, t0.id
LIMIT 100

@pgiraud
Copy link
Member
pgiraud commented Apr 28, 2025

Hello @AndriySysak

What you pasted here is not the execution plan but the query.

In case you don't know what an execution plan is, please read https://www.postgresql.org/docs/current/sql-explain.html

Otherwise, in explain.dalibo.com or PEV2, please make sure you put the plan and the query in the adequate fields in the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0