"Donald Fraser" <demolish(at)cwgsy(dot)net> writes:
> ERROR: AdjustIntervalForTypmod(): internal coding error
You passed it a typmod that's illegal for INTERVAL, viz 0.
-1 is the correct default typmod if you don't know the conventions
for a particular type's typmod values.
regards, tom lane