Sean Kelly <lists@shortestpath.org> writes:
> (gdb) bt
> #0 0x8115eb2 in ri_BuildQueryKeyFull ()
> #1 0x8115dc2 in RI_FKey_keyequal_upd ()
Ah, you're probably running into the 7.0 bug about not coping gracefully
when the referenced table for a foreign key constraint has been dropped
or renamed. This is repaired in 7.0.3, at least to the extent that you
get an error message instead of a crash.
regards, tom lane