Thomas Lockhart <lockhart@fourpalms.org> writes:
> #2 0x806cb34 in TupleDescInitEntry (desc=0x82d6304, attributeNumber=1,
> attributeName=0x1f8 <Address 0x1f8 out of bounds>, oidtypeid=1184,
> typmod=-1, attdim=0,
> attisset=0 '\000') at tupdesc.c:365
This appears to indicate that you have a Resdom node with an invalid
resname field. Seems like that wouldn't be a datatype-specific issue
at all. Have you changed the handling of cast() nodes?
regards, tom lane