Damien Dougan <damien.dougan@mobilecohesion.com> writes:
> Has anyone any ideas as to what could be causing the spiraling performance?
You really haven't provided any information that would allow anything
but guesses, but I'll guess anyway: poor plans for foreign key checks?
See nearby threads.
regards, tom lane