Zhang Mingli <zmlpostg...@gmail.com> writes:
> 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 agree, that looks pretty useless.  Our normal convention for
representing not having any LIMIT clause would be to not create
a SelectLimit node at all.  I don't see why allowing a second
representation is a good idea, especially when the code is not
in fact doing that.

git blame shows that this came in with 357889eb1.  Alvaro,
Surafel, do you want to argue for keeping things as-is?

                        regards, tom lane


Reply via email to