Skip site navigation (1) Skip section navigation (2)

Re: what happens if something goes wrong in transaction?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: A B <gentosaker(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: what happens if something goes wrong in transaction?
Date: 2008-02-28 14:51:42
Message-ID: 20080228145141.GG4764@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-general
A B escribió:
> Hi. newbie question, but what will happen if I do
> 
> begin work;
> select ...
> insert ...
> and so on...
> commit
> 
> and somewhere a query fails. will I get an automatic rollback?

Of course.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

pgsql-general by date

Next:From: Michael FuhrDate: 2008-02-28 15:04:11
Subject: Re: beginner postgis question lat/lon
Previous:From: Martijn van OosterhoutDate: 2008-02-28 14:50:11
Subject: Re: beginner postgis question lat/lon

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group