How to set "auto commit" off in postgresql db?

From: "Guang Mei" <zlmei(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to set "auto commit" off in postgresql db?
Date: 2001-01-11 21:02:56
Message-ID: F1596sKBEr8pkpLkTgb0000ec17@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<html><DIV>Hi:</DIV>
<DIV>&nbsp;</DIV>
<DIV>It seems to me that postgresql db's default set for commit is "on". I would like to set it to "off". How could I do that?</DIV>
<DIV>&nbsp;</DIV>
<DIV>TIA.</DIV>
<DIV>----------</DIV>
<DIV>Here is what I got when testing:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>
<P>webstore=&gt; create table t1 (col1 varchar(10));</P>
<P>CREATE</P>
<P>webstore=&gt; insert into t1 (col1) values ('test123');</P>
<P>INSERT 1006769 1</P>
<P>webstore=&gt; select * from t1; </P>
<P>col1 </P>
<P>---------</P>
<P>test123</P>
<P>(1 row)</P>
<P>webstore=&gt; rollback;</P>
<P>NOTICE: ROLLBACK: no transaction in progress</P>
<P>ROLLBACK</P>
<P>webstore=&gt; select * from t1;</P>
<P>col1 </P>
<P>---------</P>
<P>test123</P>
<P>(1 row)</P></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><br clear=all><hr>Get your FREE download of MSN Explorer at <a href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>

Attachment Content-Type Size
unknown_filename text/html 951 bytes

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-01-11 21:06:52 Re: Re: Loading optimization
Previous Message Ned Lilly 2001-01-11 20:33:59 Re: Modeling tool / ODBC