"Marc Mamin" <M.Mamin@xxxxxxxxxxxx> writes: > Is there some logical reason why no function width(range) was added to the bundle ? It's not well-defined for all base types. A range type only presumes the underlying type has comparison, not that it has subtraction. Moreover, there's no way to define range(anyrange) polymorphically, because the types that do have subtraction don't necessarily have operators that return the same type. (timestamptz being the first counterexample.) regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general