Re: Savepoint performance
От | Jaime Casanova |
---|---|
Тема | Re: Savepoint performance |
Дата | |
Msg-id | c2d9e70e0607271752j6ce91a90ld199c7a0d752fc62@mail.gmail.com обсуждение исходный текст |
Ответ на | Savepoint performance (Mark Lewis <mark.lewis@mir3.com>) |
Список | pgsql-performance |
On 7/27/06, Mark Lewis <mark.lewis@mir3.com> wrote: > All, > > I support a system that runs on several databases including PostgreSQL. > I've noticed that the other DB's always put an implicit savepoint before > each statement executed, and roll back to that savepoint if the > statement fails for some reason. PG does not, so unless you manually > specify a savepoint you lose all previous work in the transaction. > you're talking about transactions not savepoints (savepoints is something more like nested transactions), i guess... postgres execute every single statement inside an implicit transaction unless you put BEGIN/COMMIT between a block of statements... in that case if an error occurs the entire block of statements must ROLLBACK... if other db's doesn't do that, is a bug in their implementation of the SQL standard -- regards, Jaime Casanova "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning." Richard Cook
В списке pgsql-performance по дате отправления: