Re: What is the syntax turn off auto commit? - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: What is the syntax turn off auto commit?
Date
Msg-id Pine.BSF.4.21.0107181118130.30757-100000@megazone23.bigpanda.com
Whole thread Raw
In response to What is the syntax turn off auto commit?  (Raymond Chui <raymond.chui@noaa.gov>)
List pgsql-sql
On Wed, 18 Jul 2001, Raymond Chui wrote:

>
>
> The Subject says its all.
>
> To speed up a bulk of  INSERTs, I need to turn-off the auto commit 1st.
> Then
> at the end of INSERTs, issue COMMIT;
> What is the syntax to turn off the auto commit? Thank you!

Put them in an explicit transaction block
begin
 insert ...
 insert ...
commit;



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: pl/pgsql - code review + question
Next
From: Tom Lane
Date:
Subject: Re: pl/pgsql - code review + question