Re: What is the syntax turn off auto commit?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: What is the syntax turn off auto commit?
Дата
Msg-id Pine.BSF.4.21.0107181118130.30757-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на What is the syntax turn off auto commit?  (Raymond Chui <raymond.chui@noaa.gov>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pl/pgsql - code review + question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pl/pgsql - code review + question