Add width_bucket(anyelement, anyarray).

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e80252d424278abf65b624669c8e6b3fe8587cac
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-09-09T19:34:14Z
Releases: 9.5.0
Add width_bucket(anyelement, anyarray).

This provides a convenient method of classifying input values into buckets
that are not necessarily equal-width.  It works on any sortable data type.

The choice of function name is a bit debatable, perhaps, but showing that
there's a relationship to the SQL standard's width_bucket() function seems
more attractive than the other proposals.

Petr Jelinek, reviewed by Pavel Stehule

Files