Re: Two features left

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Two features left
Дата
Msg-id 200211272025.gARKPGE26050@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Two features left  (Jean-Luc Lachance <jllachan@nsd.ca>)
Ответы Re: Two features left  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Two features left  (Jon Swinth <jswinth@atomicpc.com>)
Список pgsql-general
Jean-Luc Lachance wrote:
> Bruce,
>
> I assume one will be able to ABORT the current transaction without
> aborting the higher transaction and ABORT ALL to abort all if needed.

Right. I hadn't planned on ABORT ALL, but it could be done to abort the
entire transaction.  Is there any standard on that?

>
> What syntax will be available to the upper transaction to detect a lower
> ABORT?
> While there be something ? la Java ( try catch)?

My initial implementation will be simple:

    BEGIN;
    SELECT ...
    BEGIN;
    UPDATE ...
    ABORT;
    DELETE ...
    COMMIT;

and later savepoints which allow you to abort back to a saved spot in your
transaction.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-general по дате отправления:

Предыдущее
От: Jon Swinth
Дата:
Сообщение: Re: Two features left
Следующее
От: Jon Swinth
Дата:
Сообщение: Re: Two features left