From: | Holger Jakobs <holger(at)jakobs(dot)com> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Cc: | arunsnmimt(at)gmail(dot)com |
Subject: | Re: Disable autocommit inside dbeaver |
Date: | 2023-12-06 18:22:26 |
Message-ID: | 384f0e2f-d398-5bbd-5501-8b22ea49bbc6@jakobs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Joseph Hammerman | 2023-12-06 21:35:05 | Monitoring autovacuum induced contention |
Previous Message | arun chirappurath | 2023-12-06 17:41:20 | Disable autocommit inside dbeaver |
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Verite | 2023-12-06 18:59:11 | Re: Emitting JSON to file using COPY TO |
Previous Message | arun chirappurath | 2023-12-06 17:41:20 | Disable autocommit inside dbeaver |