Re: Nested xacts: looking for testers and review - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Nested xacts: looking for testers and review
Date
Msg-id 87isdyu3pw.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Nested xacts: looking for testers and review  ("Bort, Paul" <pbort@tmwsystems.com>)
List pgsql-hackers
"Bort, Paul" <pbort@tmwsystems.com> writes:

> Would it make more sense to specify at the time the optional subtransaction
> is committed that it is not critical to the completion of the outer
> transaction?
> 
> BEGIN;
>   BEGIN;
>     DROP TABLE foo;
>   COMMIT NON_CRITICAL;
>   CREATE TABLE foo (i int);
> COMMIT;

I assumed that was what was being proposed. It doesn't make sense to have a
single flag on the entire outer transaction since there could have been
multiple inner transactions, not all of which are unimportant.

Hm, perhaps a parallel to "CREATE OR REPLACE" would be "COMMIT OR ROLLBACK".
I'm not sure if I'm serious about that or joking though.


-- 
greg



pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: [COMMITTERS] pgsql-server: Clean up generation of default
Next
From: Shridhar Daithankar
Date:
Subject: Re: Why frequently updated tables are an issue