pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: [pgjdbc/pgjdbc] f0deab: fix: named statements were used when fetchSize was...
Date: Mon, 24 Jul 2017 05:57:15 -0700
Message-ID: <5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: f0deabf7d87bb5bffeb84e9cd686eeb632aa9687
      https://github.com/pgjdbc/pgjdbc/commit/f0deabf7d87bb5bffeb84e9cd686eeb632aa9687
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2017-07-24 (Mon, 24 Jul 2017)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
    A pgjdbc/src/test/java/org/postgresql/test/jdbc2/ConcurrentStatementFetch.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/PreparedStatementTest.java

  Log Message:
  -----------
  fix: named statements were used when fetchSize was non-zero and prepareThreshold=0 (#870)

Non-zero fetchSize triggers use of named portals (for subsequent fetch requests),
however named portals does not require to use named statements.

As per PostgreSQL documentation, named portals are automatically closed as transaction completes, so named portals should play well with transaction-based poolers.

fixes #869



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



Message-ID: <5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail>
Permalink:  ../5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail/
Also on:    postgresql.org/message-id/5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail

 · 

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: sitnikov.vladimir@gmail.com
  Subject: Re: [pgjdbc/pgjdbc] f0deab: fix: named statements were used when fetchSize was...
  In-Reply-To: <5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail>
  References: <5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail>

* 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