Re: Nested xacts: looking for testers and review

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Nested xacts: looking for testers and review
Дата
Msg-id 87isdyu3pw.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Nested xacts: looking for testers and review  ("Bort, Paul" <pbort@tmwsystems.com>)
Список 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 по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: [COMMITTERS] pgsql-server: Clean up generation of default
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Why frequently updated tables are an issue