Re: set autocommit only for select statements

From: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: set autocommit only for select statements
Date: 2022-04-12 12:00:35
Message-ID: 37b5b251-83f8-56bc-579d-882daaa4fc47@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 4/12/22 02:31, Holger Jakobs wrote:
> What you write about psql sending a COMMIT statement after each
> statement is wrong. It may be true for other database systems.
>
> PostgreSQL as a server commits each statement automatically unless the
> client has started a transaction with BEGIN or START TRANSACTION
> statements.
>
> This can be proved easily by not using psql as a client, but some
> programming language.
>
> Regards,

If what you are saying was true, then autocommit would be a database
mode, not a tool mode. It isn't a database mode. Q.E.D.

--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Riggs 2022-04-12 12:49:39 Re: set autocommit only for select statements
Previous Message Mladen Gogala 2022-04-12 11:55:03 Re: set autocommit only for select statements