On 30 August 2014 18:24, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 3. I am thinking about name - I don't think so varwidth_bucket is correct
>> -- in relation to name "width_bucket" ... what about "range_bucket" or
>> "scope_bucket" ?
>
> Neither of those seem like improvements from here. I agree with the
> objections to bin() as well. bucket() might be all right but it still
> seems a bit too generic. width_bucket(), which at least shows there's
> a relationship to the standard functions, still seems like the best
> of the suggestions so far.
I'd been mulling that over and agree with objections to bin()
Suggest discretize() as a much more informative name. The other names
will be overlooked by anybody that doesn't already know what to look
for.
Thanks for the polymorphic patch, that sounds good. Sorry, not
reviewed more deeply (still travelling).