Re: autocommit vs TRUNCATE et al - Mailing list pgsql-hackers

From Joe Conway
Subject Re: autocommit vs TRUNCATE et al
Date
Msg-id 3DB0B698.2090805@joeconway.com
Whole thread Raw
In response to Re: autocommit vs TRUNCATE et al  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: autocommit vs TRUNCATE et al
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: autocommit vs TRUNCATE et al
Next
From: Bruce Momjian
Date:
Subject: Re: autocommit vs TRUNCATE et al