Re: autocommit off mode, how does it work? - Mailing list pgsql-hackers

From Dave Cramer
Subject Re: autocommit off mode, how does it work?
Date
Msg-id 1046243964.625.147.camel@inspiron.cramers
Whole thread Raw
In response to Re: autocommit off mode, how does it work?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: autocommit off mode, how does it work?
Re: autocommit off mode, how does it work?
List pgsql-hackers
what cvs version are you working with?

Dave
On Wed, 2003-02-26 at 01:11, Tom Lane wrote:
> Dave Cramer <dave@fastcrypt.com> writes:
> > Can someone point me to the documentation for the new autocommit mode
> > behaviour, I must be doing something wrong
> 
> Must be :-(.  I repeated your example as best I could, and it behaved
> as expected.
> 
> << session 1 >>
> 
> regression=# set autocommit=off;
> SET
> regression=# begin;
> BEGIN
> regression=# create table foo (f1 int);
> CREATE TABLE
> regression=# insert into foo values (1);
> INSERT 933631 1
> regression=# end;
> COMMIT
> regression=#
> 
> << session 2 >>
> 
> regression=# \d foo
>       Table "public.foo"
>  Column |  Type   | Modifiers
> --------+---------+-----------
>  f1     | integer |
> 
> regression=# select * from foo;
>  f1
> ----
>   1
> (1 row)
> 
> 
>             regards, tom lane
-- 
Dave Cramer <dave@fastcrypt.com>
Cramer Consulting



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CHECK constraints in pg_dump
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: CHECK constraints in pg_dump