Re: Auto-Rollback option

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Auto-Rollback option
Date: 2017-02-13 14:52:36
Message-ID: 58A1C834.7020305@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Take a look at ON_ERROR_STOP variable.

\set ON_ERROR_STOP 1

On 13/02/2017 15:55, Małgorzata Hubert wrote:
> Hi,
> is there any way to set Auto-Rollback : ON, automaticly during instalation process or using query (maybe something like set autocommit = 'on')?
> We need it to automaticly close the transaction if an error occures during implementing patches.
>
> Thanks in advanced for the answear.
> Best regards,
> Malgorzata Pomykacz

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mpomykacz 2017-02-13 15:15:55 Re: Auto-Rollback option
Previous Message Adrian Klaver 2017-02-13 14:52:20 Re: Auto-Rollback option