UNDO and partially commited transactions

Started by Martín Marquésover 24 years ago2 messages
#1Martín Marqués
martin@bugs.unl.edu.ar

I was reading the WAL documentation, and found out that UNDO is going to let
PostgreSQL allow to make partial rollbacks on invalid transactions.

What does this exactly mean? Does it mean that if I have 6 Inserts in between
a begin work - commit work some will get through and the ones with errors no?

Saludos... :-)

--
Cualquiera administra un NT.
Ese es el problema, que cualquiera administre.
-----------------------------------------------------------------
Martin Marques | mmarques@unl.edu.ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Martín Marqués (#1)
Re: UNDO and partially commited transactions

I was reading the WAL documentation, and found out that UNDO is going to let
PostgreSQL allow to make partial rollbacks on invalid transactions.

We already "undo" aborted transactions, but without using the WAL log.
Not sure if we will ever add that feature to WAL.

What does this exactly mean? Does it mean that if I have 6 Inserts in between
a begin work - commit work some will get through and the ones with errors no?

No, they all fail. No worries.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026