Re: what happens if something goes wrong in transaction? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: what happens if something goes wrong in transaction?
Date
Msg-id 20080228145141.GG4764@alvh.no-ip.org
Whole thread Raw
In response to what happens if something goes wrong in transaction?  ("A B" <gentosaker@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: beginner postgis question lat/lon
Next
From: Michael Fuhr
Date:
Subject: Re: beginner postgis question lat/lon