On Sun, Jun 26, 2011 at 8:18 AM, Jeff Davis <pg...@j-davis.com> wrote: > * it needs to know the result type of that function, which might not be > the subtype (for instance, for timestamp the difference type would be > interval)
What's the use case for the length() function? Is it for users to be able to display useful information about their ranges? Or is it for implementing things like GIST indexes? For the latter a length function that always returns a float might be more useful. Even if it isn't guaranteed to always be perfectly precise, that is if ranges of similar length sometimes returned identical values, at least it could be used for things like penalty(). -- greg -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers