Re: autocommit vs TRUNCATE et al

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: autocommit vs TRUNCATE et al
Дата
Msg-id 3DB0B698.2090805@joeconway.com
обсуждение исходный текст
Ответ на Re: autocommit vs TRUNCATE et al  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: autocommit vs TRUNCATE et al  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
>>most useful approach.  The analogy to SET hadn't occurred to me.
> 
> 
> Yea, the SET behavior appeared pretty queer to me, but now that I have
> used it, I am getting used to it.
> 

So does that mean:
  set autocommit to off;  begin;  insert into foo values('a');  insert into bar values('b');  truncate table foobar;

will automatically commit the two inserts?

Joe




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: autocommit vs TRUNCATE et al
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: autocommit vs TRUNCATE et al