Disable autocommit inside dbeaver

Started by arun chirappurathover 2 years ago4 messagesgeneral
Jump to latest
#1arun chirappurath
arunsnmimt@gmail.com

Hi All,

Is there a way we can disable autocommit option inside query writing area?
Not by choosing auto commit from drop down menu.

Thanks,
Arun

#2Holger Jakobs
holger@jakobs.com
In reply to: arun chirappurath (#1)
Re: Disable autocommit inside dbeaver

Am 06.12.23 um 18:41 schrieb arun chirappurath:

Hi All,

Is there a way we can disable autocommit option inside query writing
area? Not by choosing auto commit from drop down menu.

Thanks,
Arun

No, and there is a reason why:

https://www.cybertec-postgresql.com/en/disabling-autocommit-in-postgresql-can-damage-your-health/

and here:
https://dba.stackexchange.com/questions/303155/how-to-turn-off-autocommit-in-postgresql

Whenever you want several commands being executed in a transaction,
start the transaction yourself, using BEGIN or START TRANSACTION. If you
want transactions, you probably also want to set the isolation level,
which defaults to READ COMMITTED, even though the SQL standard would
prefer SERIALIZABLE.

--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

#3arun chirappurath
arunsnmimt@gmail.com
In reply to: arun chirappurath (#1)
Fwd: Disable autocommit inside dbeaver

Hi All,

Is there a way we can disable autocommit option inside query writing area?
Not by choosing auto commit from drop down menu.

Thanks,
Arun

#4Rob Sargent
robjsargent@gmail.com
In reply to: arun chirappurath (#3)
Re: Fwd: Disable autocommit inside dbeaver

On 12/6/23 20:45, arun chirappurath wrote:

Hi All,

Is there a way we can disable autocommit option inside query writing
area? Not by choosing auto commit from drop down menu.

Thanks,
Arun

maybe "begin; <your sql statements>; commit;"