Richard Kut <rkut(at)intelerad(dot)com> writes:
> Thanks for the quick response. However, the ROLLBACK that you see occurred
> because I ended the transaction using END; and not because I explicitly asked
> for a ROLLBACK.
That is a ROLLBACK. END means "COMMIT if transaction is OK, else ROLLBACK".
regards, tom lane