useless LIMIT_OPTION_DEFAULT - Mailing list pgsql-hackers

From Zhang Mingli
Subject useless LIMIT_OPTION_DEFAULT
Date
Msg-id 59d61a1a-3858-475a-964f-24468c97cc67@Spark
Whole thread Raw
Responses Re: useless LIMIT_OPTION_DEFAULT
List pgsql-hackers
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
Attachment

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Simplify newNode()
Next
From: Peter Smith
Date:
Subject: Re: Synchronizing slots from primary to standby