From waruna@nirmani.com Fri Aug 30 17:31:11 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C02AF4759BD for ; Fri, 30 Aug 2002 13:31:11 -0400 (EDT) Received: from kumudu.nslk.com (unknown [64.247.55.254]) by postgresql.org (Postfix) with ESMTP id 3C2B7475843 for ; Fri, 30 Aug 2002 13:31:11 -0400 (EDT) Received: from [203.94.92.113] (helo=x) by kumudu.nslk.com with asmtp (Exim 3.35 #1) id 17kpbD-0006ch-00 for pgsql-admin@postgresql.org; Fri, 30 Aug 2002 13:30:23 -0400 Message-ID: <001201c2504a$fe87a660$715c5ecb@x> Reply-To: "Waruna Geekiyanage" From: "Waruna Geekiyanage" To: Subject: turn off auto-commit Date: Fri, 30 Aug 2002 23:29:31 +0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000D_01C2507D.179A08A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kumudu.nslk.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - nirmani.com X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/421 X-Sequence-Number: 5535 This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C2507D.179A08A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How to turn off auto-commit in pgsql 7.2? ------=_NextPart_000_000D_01C2507D.179A08A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How to turn off auto-commit in pgsql=20 7.2?
------=_NextPart_000_000D_01C2507D.179A08A0-- From nickf@ontko.com Fri Aug 30 19:42:49 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EC320475A9B for ; Fri, 30 Aug 2002 15:42:49 -0400 (EDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by postgresql.org (Postfix) with ESMTP id 7698F4759BD for ; Fri, 30 Aug 2002 15:42:49 -0400 (EDT) Received: from 1cust127.tnt1.richmond.in.da.uu.net ([63.27.103.127] helo=nick) by gull.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 17krex-0000Ou-00; Fri, 30 Aug 2002 12:42:24 -0700 Reply-To: From: "Nick Fankhauser" To: "Waruna Geekiyanage" , Subject: Re: turn off auto-commit Date: Fri, 30 Aug 2002 14:38:10 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <001201c2504a$fe87a660$715c5ecb@x> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/424 X-Sequence-Number: 5538 >How to turn off auto-commit in pgsql 7.2? \set autocommit off \set autocommit on From pgman@candle.pha.pa.us Sat Aug 31 00:50:02 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 42A6C475CA9 for ; Fri, 30 Aug 2002 20:50:02 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 688D4475A7F for ; Fri, 30 Aug 2002 20:50:00 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g7V0nAZ02644; Fri, 30 Aug 2002 20:49:11 -0400 (EDT) From: Bruce Momjian Message-Id: <200208310049.g7V0nAZ02644@candle.pha.pa.us> Subject: Re: turn off auto-commit In-Reply-To: <001201c2504a$fe87a660$715c5ecb@x> To: Waruna Geekiyanage Date: Fri, 30 Aug 2002 20:48:55 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/425 X-Sequence-Number: 5539 There is no option in 7.2, but it will appear in 7.3, due out in a few months. --------------------------------------------------------------------------- Waruna Geekiyanage wrote: > How to turn off auto-commit in pgsql 7.2? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From waruna@nirmani.com Wed Sep 4 15:50:24 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0CF74758CF for ; Wed, 4 Sep 2002 11:50:24 -0400 (EDT) Received: from kumudu.nslk.com (unknown [64.247.55.254]) by postgresql.org (Postfix) with ESMTP id 51BA6475F9C for ; Wed, 4 Sep 2002 11:50:24 -0400 (EDT) Received: from [203.94.93.125] (helo=x) by kumudu.nslk.com with asmtp (Exim 3.35 #1) id 17mcPk-0002o7-00; Wed, 04 Sep 2002 11:49:57 -0400 Message-ID: <000e01c2542a$c796bea0$7d5d5ecb@x> Reply-To: "Waruna Geekiyanage" From: "Waruna Geekiyanage" To: "Bruce Momjian" Cc: References: <200208310049.g7V0nAZ02644@candle.pha.pa.us> Subject: Re: turn off auto-commit Date: Wed, 4 Sep 2002 21:49:30 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kumudu.nslk.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - nirmani.com X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/46 X-Sequence-Number: 5585 Does turn fsync off equivalent to turn autocommit off? ----- Original Message ----- From: Bruce Momjian To: Waruna Geekiyanage Cc: Sent: Saturday, August 31, 2002 6:48 AM Subject: Re: [ADMIN] turn off auto-commit > > There is no option in 7.2, but it will appear in 7.3, due out in a few > months. > > > -------------------------------------------------------------------------- - > > Waruna Geekiyanage wrote: > > How to turn off auto-commit in pgsql 7.2? > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania 19073 > > From pgman@candle.pha.pa.us Wed Sep 4 17:05:18 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AC7D24761C4 for ; Wed, 4 Sep 2002 13:05:18 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id D955147617F for ; Wed, 4 Sep 2002 13:05:16 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g84H5AP07012; Wed, 4 Sep 2002 13:05:10 -0400 (EDT) From: Bruce Momjian Message-Id: <200209041705.g84H5AP07012@candle.pha.pa.us> Subject: Re: turn off auto-commit In-Reply-To: <000e01c2542a$c796bea0$7d5d5ecb@x> To: Waruna Geekiyanage Date: Wed, 4 Sep 2002 13:05:09 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/35 X-Sequence-Number: 5574 No, they are unrelated. --------------------------------------------------------------------------- Waruna Geekiyanage wrote: > Does turn fsync off equivalent to turn autocommit off? > > > ----- Original Message ----- > From: Bruce Momjian > To: Waruna Geekiyanage > Cc: > Sent: Saturday, August 31, 2002 6:48 AM > Subject: Re: [ADMIN] turn off auto-commit > > > > > > There is no option in 7.2, but it will appear in 7.3, due out in a few > > months. > > > > > > -------------------------------------------------------------------------- > - > > > > Waruna Geekiyanage wrote: > > > How to turn off auto-commit in pgsql 7.2? > > > > -- > > Bruce Momjian | http://candle.pha.pa.us > > pgman@candle.pha.pa.us | (610) 359-1001 > > + If your life is a hard drive, | 13 Roberts Road > > + Christ can be your backup. | Newtown Square, Pennsylvania > 19073 > > > > > > > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From pgman@candle.pha.pa.us Thu Sep 5 16:49:44 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B9C70476D33 for ; Thu, 5 Sep 2002 12:49:44 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 25A1E476CDA for ; Thu, 5 Sep 2002 12:49:43 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g85Gnff22626; Thu, 5 Sep 2002 12:49:41 -0400 (EDT) From: Bruce Momjian Message-Id: <200209051649.g85Gnff22626@candle.pha.pa.us> Subject: Re: turn off auto-commit In-Reply-To: <000e01c2542a$c796bea0$7d5d5ecb@x> To: Waruna Geekiyanage Date: Thu, 5 Sep 2002 12:49:41 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/49 X-Sequence-Number: 5588 Waruna Geekiyanage wrote: > Does turn fsync off equivalent to turn autocommit off? No, fsync is related to flushing information to disk. It doesn't relate to autocommit. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From bjorn.lundin@swipnet.se Thu Sep 5 17:54:57 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5AF1F476C16 for ; Thu, 5 Sep 2002 13:54:57 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id C3D99476C08 for ; Thu, 5 Sep 2002 13:54:55 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 53EA838195F; Thu, 5 Sep 2002 13:54:53 -0400 (EDT) From: =?ISO-8859-1?Q?Bj=F6rn?= Lundin X-Newsgroups: comp.databases.postgresql.admin Subject: Re: turn off auto-commit Date: Thu, 05 Sep 2002 19:55:53 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 18 Message-ID: References: <200209051649.g85Gnff22626@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Complaints-To: news@hub.org User-Agent: KNode/0.7.1 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/53 X-Sequence-Number: 5592 Bruce Momjian wrote: > Waruna Geekiyanage wrote: >> Does turn fsync off equivalent to turn autocommit off? > > No, fsync is related to flushing information to disk. It doesn't relate > to autocommit. > This auto-commit on/off, is this what I think it is; a way off NOT needing to enclose several statements in a begin/commit, but having a new transaction directly after a commit, in psql, like Oracle's sql*plus? If so, in what version was this introduced, or is this mentioned somewhere on the web? regards /Björn Lundin From nickf@ontko.com Thu Sep 5 18:51:03 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 381D7476C23 for ; Thu, 5 Sep 2002 14:51:03 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 31835476B30 for ; Thu, 5 Sep 2002 14:51:02 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian -4) with SMTP id g85Ip2qP020431; Thu, 5 Sep 2002 13:51:02 -0500 Reply-To: From: "Nick Fankhauser" To: =?iso-8859-1?Q?Bj=F6rn_Lundin?= , Subject: Re: turn off auto-commit Date: Thu, 5 Sep 2002 13:46:42 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/56 X-Sequence-Number: 5595 > like > Oracle's sql*plus? Yes, it seems to act just like sql*plus in this regard. > If so, in what version was this introduced, or is this mentioned somewhere > on the web? I don't remember it ever not being there. I've been a user since version 6.5. -Nick From pgman@candle.pha.pa.us Thu Sep 5 18:57:44 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E5C0F476B1E for ; Thu, 5 Sep 2002 14:57:44 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 32EF0476A3D for ; Thu, 5 Sep 2002 14:57:43 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g85IvaO07833; Thu, 5 Sep 2002 14:57:36 -0400 (EDT) From: Bruce Momjian Message-Id: <200209051857.g85IvaO07833@candle.pha.pa.us> Subject: Re: turn off auto-commit In-Reply-To: To: =?ISO-8859-1?Q?Bj=F6rn_Lundin?= Date: Thu, 5 Sep 2002 14:57:36 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UNKNOWN-8BIT X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/57 X-Sequence-Number: 5596 Björn Lundin wrote: > Bruce Momjian wrote: > > > Waruna Geekiyanage wrote: > >> Does turn fsync off equivalent to turn autocommit off? > > > > No, fsync is related to flushing information to disk. It doesn't relate > > to autocommit. > > > This auto-commit on/off, is this what I think it is; > a way off NOT needing to enclose several statements in a begin/commit, > but having a new transaction directly after a commit, in psql, like > Oracle's sql*plus? > > If so, in what version was this introduced, or is this mentioned somewhere > on the web? Yes, autocommit appears in 7.3, due out in a few months. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From bjorn.lundin@swipnet.se Thu Sep 5 20:24:37 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CC89A475D35 for ; Thu, 5 Sep 2002 16:24:37 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 68429475CED for ; Thu, 5 Sep 2002 16:24:37 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id D8575381969; Thu, 5 Sep 2002 16:24:36 -0400 (EDT) From: =?ISO-8859-1?Q?Bj=F6rn?= Lundin X-Newsgroups: comp.databases.postgresql.admin Subject: Re: turn off auto-commit Date: Thu, 05 Sep 2002 22:25:39 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 9 Message-ID: References: <200209051857.g85IvaO07833@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Complaints-To: news@hub.org User-Agent: KNode/0.7.1 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/58 X-Sequence-Number: 5597 Bruce Momjian wrote: > Yes, autocommit appears in 7.3, due out in a few months. A very nice feature, thanks. /Björn From nickf@ontko.com Thu Sep 5 20:44:57 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 679924769E3 for ; Thu, 5 Sep 2002 16:44:57 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 703E94769DE for ; Thu, 5 Sep 2002 16:44:56 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian -4) with SMTP id g85KipqP021913; Thu, 5 Sep 2002 15:44:52 -0500 Reply-To: From: "Nick Fankhauser" To: , Subject: Re: turn off auto-commit Date: Thu, 5 Sep 2002 15:40:33 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/59 X-Sequence-Number: 5598 > Bruce Momjian wrote: > > Yes, autocommit appears in 7.3, due out in a few months. I'm confused. Isn't autocommit already there & on by default in psql currently? -Nick From pgman@candle.pha.pa.us Thu Sep 5 20:48:35 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9FE8C4758CF for ; Thu, 5 Sep 2002 16:48:35 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 0C2E2475F32 for ; Thu, 5 Sep 2002 16:48:34 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g85KmSM18285; Thu, 5 Sep 2002 16:48:28 -0400 (EDT) From: Bruce Momjian Message-Id: <200209052048.g85KmSM18285@candle.pha.pa.us> Subject: Re: turn off auto-commit In-Reply-To: To: nickf@ontko.com Date: Thu, 5 Sep 2002 16:48:28 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/60 X-Sequence-Number: 5599 Nick Fankhauser wrote: > > > Bruce Momjian wrote: > > > > Yes, autocommit appears in 7.3, due out in a few months. > > I'm confused. > > Isn't autocommit already there & on by default in psql currently? He wants to turn autocomit off: $ psql test=> UPDATE tab SET col = 1; test=> UPDATE tab2 SET col = 2; test=> COMMIT; With autocommit off, you basically start in a multi-statement transaction at the start and every time you commit. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From nickf@ontko.com Thu Sep 5 20:55:12 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4E4734767AA for ; Thu, 5 Sep 2002 16:55:12 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id B77604761B7 for ; Thu, 5 Sep 2002 16:55:11 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian -4) with SMTP id g85KtCqP022084; Thu, 5 Sep 2002 15:55:12 -0500 Reply-To: From: "Nick Fankhauser" To: "Bruce Momjian" Cc: Subject: Re: turn off auto-commit Date: Thu, 5 Sep 2002 15:50:54 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <200209052048.g85KmSM18285@candle.pha.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/61 X-Sequence-Number: 5600 Oh! I thought Waruna wanted to turn it off, but Björn wanted to know if it could be controlled via psql. Either way, both questions got answered, so we're set. -Nick > -----Original Message----- > From: Bruce Momjian [mailto:pgman@candle.pha.pa.us] > Sent: Thursday, September 05, 2002 3:48 PM > To: nickf@ontko.com > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] turn off auto-commit > > > Nick Fankhauser wrote: > > > > > Bruce Momjian wrote: > > > > > > Yes, autocommit appears in 7.3, due out in a few months. > > > > I'm confused. > > > > Isn't autocommit already there & on by default in psql currently? > > He wants to turn autocomit off: > > $ psql > test=> UPDATE tab SET col = 1; > test=> UPDATE tab2 SET col = 2; > test=> COMMIT; > > With autocommit off, you basically start in a multi-statement > transaction at the start and every time you commit. > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, > Pennsylvania 19073 >