Re: autocommit vs TRUNCATE et al

From: Joe Conway <mail(at)joeconway(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: autocommit vs TRUNCATE et al
Date: 2002-10-19 01:34:16
Message-ID: 3DB0B698.2090805@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-10-19 01:39:01 Re: autocommit vs TRUNCATE et al
Previous Message Bruce Momjian 2002-10-19 01:30:34 Re: autocommit vs TRUNCATE et al