Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZcvO-00069j-12 for pgsql-jdbc@arkaria.postgresql.org; Mon, 24 Jul 2017 12:57:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dZcvM-0006C0-Uv for pgsql-jdbc@arkaria.postgresql.org; Mon, 24 Jul 2017 12:57:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dZcvL-0006Bg-49 for pgsql-jdbc@postgresql.org; Mon, 24 Jul 2017 12:57:23 +0000 Received: from m69-169.mailgun.net ([166.78.69.169]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dZcvH-0000qb-GT for pgsql-jdbc@postgresql.org; Mon, 24 Jul 2017 12:57:21 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1500901038; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=0/bDq0LHVXF1uBUz4Wp/Hw/Kf3GhvqRBV7TP0nB3GdQ=; b=GkQJDIzJXYZHlxCa+YnpJhlmhVvZ4/PzqD8nhMCJkhIp9dN8cYYtmPwg1dolJ7PMuUZfAMzU 3PPRp6fZzreuFopYEIMbdvJ5YZfre9gKAf3Scam6wrw8Kixx2WNkwDJ5lC1HEsEfJs6V6u+/ ANoEjymN+zUGJ3vZ/Qmx/NH3bGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=github.com; s=mailo; q=dns; h=Sender: Date: From: Reply-To: To: Message-ID: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding; b=vukm/sPgXKrFMh8lIMAkhP3i+S/unyfKdDM3SpwgAa5WlnOaJjPbuXWC3IqGd5lZD0yvtT CJ9my3/MtdRj2phxw3s+JH7Shkdpz/MHdWb8ZdMz2gC4qZBTesp2BHmPyAEc6uZlUDH8dV+S JQXihpdCaN1QGh+x844FPEITzxM+g= X-Mailgun-Sending-Ip: 166.78.69.169 X-Mailgun-Sid: WyI3ZTA2ZSIsICJwZ3NxbC1qZGJjQHBvc3RncmVzcWwub3JnIiwgIjQwZiJd Received: from github.com (Unknown [192.30.252.41]) by mxa.mailgun.org with ESMTP id 5975eeab.7f81882e1d80-smtp-out-n03; Mon, 24 Jul 2017 12:57:15 -0000 (UTC) Date: Mon, 24 Jul 2017 05:57:15 -0700 From: Vladimir Sitnikov Reply-To: Vladimir Sitnikov To: pgsql-jdbc@postgresql.org Message-ID: <5975eeabd2e92_32503fb4bc4b3c2c32397@hookshot-fe5-cp1-prd.iad.github.net.mail> Subject: [pgjdbc/pgjdbc] f0deab: fix: named statements were used when fetchSize was... Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: f0deabf7d87bb5bffeb84e9cd686eeb632aa9687 https://github.com/pgjdbc/pgjdbc/commit/f0deabf7d87bb5bffeb84e9cd686eeb632aa9687 Author: Vladimir Sitnikov 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