"David Dabney" <David(dot)Dabney(at)noaa(dot)gov> writes:
> I'm assuming this is a bug.
Perhaps, but there is absolutely no chance of anyone reproducing the
problem from the information you've offered. You say "it fails when
I try to insert data from table DD5", but you give us no clue about
what data is in DD5.
There is some generic advice about how to create a useful bug report
here:
http://www.postgresql.org/docs/8.0/static/bug-reporting.html
The short and sweet version of it is "give us a SQL script that
delivers a wrong result" ...
regards, tom lane