Re: width_bucket function for timestamps - Mailing list pgsql-hackers

From Tom Lane
Subject Re: width_bucket function for timestamps
Date
Msg-id 9427.1160431928@sss.pgh.pa.us
Whole thread Raw
In response to Re: width_bucket function for timestamps  (Jeremy Drake <pgsql@jdrake.com>)
List pgsql-hackers
Jeremy Drake <pgsql@jdrake.com> writes:
> I found the function I used before I implemented the C version.  It was
> significantly slower, which is why I wrote the C version.

I would imagine that most of the problem is the NUMERIC arithmetic
that's doing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: timestamp subtraction (was Re: [SQL] formatting intervals with to_char)
Next
From: Neil Conway
Date:
Subject: Re: width_bucket function for timestamps