useless LIMIT_OPTION_DEFAULT
Zhang Mingli <zmlpostgres@gmail.com>
From: Zhang Mingli <zmlpostgres@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-12-14T01:17:33Z
Lists: pgsql-hackers
Attachments
- v1-0001-Remove-useless-LIMIT_OPTION_DEFAULT.patch (application/octet-stream) patch v1-0001
Hi, all By reading the codes, I found that we process limit option as LIMIT_OPTION_WITH_TIES when using WITH TIES and all others are LIMIT_OPTION_COUNT by commit 357889eb17bb9c9336c4f324ceb1651da616fe57. And check actual limit node in limit_needed(). There is no need to maintain a useless default limit enum. I remove it and have an install check to verify. Are there any considerations behind this? Shall we remove it for clear as it’s not actually the default option. Zhang Mingli www.hashdata.xyz
Commits
-
Remove useless LIMIT_OPTION_DEFAULT value from LimitOption
- a6be0600ac3b 17.0 landed
-
Support FETCH FIRST WITH TIES
- 357889eb17bb 13.0 cited