Re: Functions, savepoints, autocommit = I am confused !

From: Tim Smith <randomdev4+postgres(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Functions, savepoints, autocommit = I am confused !
Date: 2015-06-26 14:26:00
Message-ID: CA+HuS5GR6QzhUa2YGz3GyQzWN8W84jLU+ub=1Yvc3Tz06jpLLw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> You need to trap exceptions and in the handler block issue a
>
> ROLLBACK TO SAVEPOINT
>
> http://www.postgresql.org/docs/9.4/static/sql-rollback-to.html
>
>
> otherwise the the ROLLBACK issued at pg-session end will simply rollback
> everything.
>
> David J.
>

Thanks, will take a look.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Smith 2015-06-26 14:48:07 Re: Functions, savepoints, autocommit = I am confused !
Previous Message Tim Smith 2015-06-26 14:24:58 Re: Functions, savepoints, autocommit = I am confused !