Marian POPESCU <softexpert(at)libertysurf(dot)fr> writes:
> I want to write a function that updates several tables; if there is an
> exception while updating, it should rollback the transaction and raise an
> error.
> How can this be done in pgPLSQL in PostgreSQL 8.1 ?
You just do it. You would have to work at it to *not* have that behavior.
regards, tom lane