pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What is the syntax turn off auto commit?
2+ messages / 2 participants
[nested] [flat]

* What is the syntax turn off auto commit?
@ 2001-07-18 12:18  Raymond Chui <raymond.chui@noaa.gov>
  0 siblings, 1 reply; 2+ messages in thread

From: Raymond Chui @ 2001-07-18 12:18 UTC (permalink / raw)
  To: pgsql-general@postgresql.org.pgsql-sql



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!

--Raymond

Attachments:

raymond.chui.vcf (text/x-vcard, 413B) download begin:vcard n:Chui;Raymond tel;fax:(301)713-0963 tel;work:(301)713-0624 Ext. 168 x-mozilla-html:TRUE url:http://members.xoom.com/rchui/ org:NWS, NOAA version:2.1 email;internet:Raymond.Chui@noaa.gov title:SA, DBA note:ICQ #: 16722494 adr;quoted-printable:;;NOAA, NWS, Office of Hydrology, OH=0D=0A1325 East-West Highway, Room 8112;Silver Spring;MD;20910-3283;U.S.A. x-mozilla-cpt:;-6384 fn:Raymond Chui end:vcard
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: [SQL] What is the syntax turn off auto commit?
@ 2001-07-18 18:18  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Raymond Chui <raymond.chui@noaa.gov>
  0 siblings, 0 replies; 2+ messages in thread

From: Stephan Szabo @ 2001-07-18 18:18 UTC (permalink / raw)
  To: Raymond Chui <raymond.chui@noaa.gov>; +Cc: pgsql-general@postgresql.org; 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;





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-07-18 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-18 12:18 What is the syntax turn off auto commit? Raymond Chui <raymond.chui@noaa.gov>
2001-07-18 18:18 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox