recently someone show us this code in the spanish list...
> BEGIN WORK;
> INSERT INTO mitabla VALUES (1);
> BEGIN TRANSACTION;
> INSERT INTO mitabla VALUES (2);
> INSERT INTO mitabla VALUES (3);
> COMMIT TRANSACTION;
> INSERT INTO mitabla VALUES (4);
> ROLLBACK WORK;
this is clearly bad you can't use a begin transaction inside a
transaction... but the user was expecting other results and because he
receives no error (actually was a warning but he is sending the
commands via an external application)...
he was expecting an empty table but instead he gets this:
so, why BeginTransactionBlock emits just a warning and not an error?
this is not the same as in the case of the one who was closing and
already closed cursor?
(DBA: DataBase Aniquilator ;)
pgsql-hackers by date
|Next:||From: Robert Treat||Date: 2005-12-16 22:56:24|
|Subject: reducing bloat in pg_statistic|
|Previous:||From: Alvaro Herrera||Date: 2005-12-16 22:00:48|
|Subject: Re: Self-modifying code|