Does Postgres rollback transactions on all errors? - Mailing list pgsql-novice

From Ryan Ho
Subject Does Postgres rollback transactions on all errors?
Date
Msg-id 3AE3000A.B6DB7FDD@cyberronins.com
Whole thread Raw
In response to Question re how to secure a postgresql 7.1 installation.  ("Eric Naujock " <naujocke@abacusii.com>)
Responses Re: Does Postgres rollback transactions on all errors?
List pgsql-novice
In a transaction, should any of the sql statements fail to execute, does Postgres rollback all the previous statements?

To my best knowledge, it should but I have observed that on some occasions, half my transaction can get committed,
whilethe other half is unsuccessful. 

Do I need check for failed transactions and enforce a rollback in my code or is it done by the backend automatically?

Thanks in advance
Ryan


pgsql-novice by date:

Previous
From: Ryan Ho
Date:
Subject: Re: BLOB Type ?
Next
From: Steve Waldman
Date:
Subject: Re: BLOB Type ?