How to set "auto commit" off in postgresql db? - Mailing list pgsql-general

From Guang Mei
Subject How to set "auto commit" off in postgresql db?
Date
Msg-id F1596sKBEr8pkpLkTgb0000ec17@hotmail.com
Whole thread Raw
Responses Re: How to set "auto commit" off in postgresql db?
List pgsql-general
Hi:
 
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?
 
TIA.
----------
Here is what I got when testing:
 

webstore=> create table t1 (col1 varchar(10));
CREATE
webstore=> insert into t1 (col1) values ('test123');
INSERT 1006769 1
webstore=> select * from t1;
col1
---------
test123
(1 row)
webstore=> rollback;
NOTICE: ROLLBACK: no transaction in progress
ROLLBACK
webstore=> select * from t1;
col1
---------
test123
(1 row)
 
 Get your FREE download of MSN Explorer at http://explorer.msn.com

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: How to see a RULE definition?
Next
From: Bruce Momjian
Date:
Subject: Re: Re: Loading optimization