Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> writes:
> It seems to happen with every statement run in the same transaction as,
> and after, the procedure with all the subtransactions. As soon as a
> COMMIT is executed, operations return to normal speed.
Ah. I misread your post as saying that it happened only once.
regards, tom lane