pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] b37115: Prevent use of extended query protocol for BEGIN b...
Date: Fri, 06 Dec 2019 05:21:35 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/ad83cb-b37115@github.com> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: b37115373935732b1ab5e59b56837ac49942718a
      https://github.com/pgjdbc/pgjdbc/commit/b37115373935732b1ab5e59b56837ac49942718a
  Author: Craig Ringer <craig@2ndquadrant.com>
  Date:   2019-12-06 (Fri, 06 Dec 2019)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java

  Log Message:
  -----------
  Prevent use of extended query protocol for BEGIN before COPY (#1639)

When autocommit is off and the first query in a transaction is a COPY, we were
sending a BEGIN using the extended query protocol. It was being permitted to
use named portals as well, ignoring prepareThreshold.

Fix by forcing simple query mode and marking the BEGIN as oneshot.

Fixes #1638







Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/ad83cb-b37115@github.com>
Permalink:  ../pgjdbc%2Fpgjdbc%2Fpush%2Frefs%2Fheads%2Fmaster%2Fad83cb-b37115@github.com/
Also on:    postgresql.org/message-id/pgjdbc/pgjdbc/push/refs/heads/master/ad83cb-b37115@github.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noreply@github.com
  Subject: Re: [pgjdbc/pgjdbc] b37115: Prevent use of extended query protocol for BEGIN b...
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/ad83cb-b37115@github.com>
  References: <pgjdbc/pgjdbc/push/refs/heads/master/ad83cb-b37115@github.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