Subtransactions in PL/pgSQL