I found that plpgsql did not have the proper mapping of
datetime->timestamp and timespan->interval.  It had the old 6.5.*
reverse mappings.  Fix in CVS and will appear in 7.0.1.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Thu, 11 May 2000 00:06:58 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Fix for plpgsql and timestamp/interval