On Wed, Jan 11, 2006 at 08:02:37AM -0700, Robert Creager wrote: > The query is wrong as stated, as it won't work when the interval > crosses a year boundary, but it's a stop gap for now. Yeah, I realized that shortly after I posted the original and posted a correction. http://archives.postgresql.org/pgsql-performance/2006-01/msg00104.php -- Michael Fuhr