From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Cc: arunsnmimt@gmail.com
Subject: Re: Disable autocommit inside dbeaver
Date: Wed, 6 Dec 2023 19:22:26 +0100
Message-ID: <384f0e2f-d398-5bbd-5501-8b22ea49bbc6@jakobs.com> (raw)
In-Reply-To: <CAA23Sds2q7ky91mQcViXKx_-x34zRynXRuwQu5DuO94EWw9i5g@mail.gmail.com>
References: <CAA23Sds2q7ky91mQcViXKx_-x34zRynXRuwQu5DuO94EWw9i5g@mail.gmail.com>
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
Attachments:
[application/pgp-signature] OpenPGP_signature (202B, ../384f0e2f-d398-5bbd-5501-8b22ea49bbc6@jakobs.com/2-OpenPGP_signature)
download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org, arunsnmimt@gmail.com
Subject: Re: Disable autocommit inside dbeaver
In-Reply-To: <384f0e2f-d398-5bbd-5501-8b22ea49bbc6@jakobs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox