Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> writes:
> Actually, after looking at the code for interval_lt, all that needs to
> happen to add this support is to expose interval_cmp_internal() as a
> strict function. It already does exactly what you want.
interval_cmp() is already SQL-accessible.
regards, tom lane