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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-general by date

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