Fran Fabrizio <ffabrizio(at)exchange(dot)webmd(dot)net> writes:
> At first, I accidentally tried to do reltime(limit*60) where limit was
> accidentally an interval instead of an integer, and my database crashed
> and exited horribly.
Yeah? Did you have any nulls in the limit column?
select reltime(null::interval);
bombs in 7.0 (but is fine in 7.1). interval_reltime is far from the
only function that's not NULL-proof in pre-7.1 releases :-(
regards, tom lane