Message-ID: From: "qinarmy-zoro (@qinarmy-zoro)" To: "pgjdbc/pgjdbc" Date: Mon, 23 Mar 2026 09:51:42 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3980: fix Enable cursor-based bug, when start transaction by 'START TRANSAC… In-Reply-To: References: List-Id: X-GitHub-Author-Login: qinarmy-zoro X-GitHub-Comment-Id: 4109333168 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3980 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3980#issuecomment-4109333168 Content-Type: text/plain; charset=utf-8 > So I'm curious why are you using start transaction readonly when there is an API for this? setAutoCommit(false) and setReadOnly(true) Because ,Jdbc js bad design,Starting a database transaction should maintain integrity, so it must be a single SQL statement. This is good design , startTransaction(TransactionOption option).