Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> */
> case TBLOCK_DEFAULT:
> AbortTransaction();
> ! if (autocommit)
> ! CleanupTransaction();
> ! else
> ! s->blockState = TBLOCK_ABORT;
> break;
You forgot suppressChain...
regards, tom lane