Transactions

Поиск
Список
Период
Сортировка
Искать

Transactions

От:
Luiz Eduardo Cantanhede Neri <lecneri@gmail.com>
Дата:
What happens if I open 2 or more transactions?

BEING;
--SOME COMMANDS
BEGIN;
--SOME OTHERS COMMANDS
ROLLBACK;
BEGIN;
--EVEN MORE COMMANDS
COMMIT;
--ALMOST DONE WITH COMMANDS
COMMIT;

one internal commit / rollback affects the most outside transaction?

Re: Transactions

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Luiz Eduardo Cantanhede Neri  writes:
> What happens if I open 2 or more transactions?

Nothing, because you can't.

Read up on savepoints, which are effectively subtransactions.

			regards, tom lane
FAQ