Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WGjnN-0001g3-1f for pgsql-jdbc@arkaria.postgresql.org; Fri, 21 Feb 2014 06:41:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WGjnM-0007mQ-8T for pgsql-jdbc@arkaria.postgresql.org; Fri, 21 Feb 2014 06:41:12 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WGjnL-0007mJ-6E for pgsql-jdbc@postgresql.org; Fri, 21 Feb 2014 06:41:11 +0000 Received: from mail12.ics.ntts.co.jp ([210.232.35.65]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WGjnI-0004zk-4x for pgsql-jdbc@postgresql.org; Fri, 21 Feb 2014 06:41:10 +0000 Received: from sadoku34.silk.ntts.co.jp (sadoku34 [10.7.18.34]) by mail12.ics.ntts.co.jp (8.14.4/8.14.4/NTTSOFT) with ESMTP id s1L6f4vc028648 for ; Fri, 21 Feb 2014 15:41:04 +0900 (JST) Received: (from root@localhost) by sadoku34.silk.ntts.co.jp (8.13.8/NTTSOFT) id s1L6f4vN004706 for pgsql-jdbc@postgresql.org; Fri, 21 Feb 2014 15:41:04 +0900 (JST) Received: from ccmds32.silk.ntts.co.jp [10.107.0.32] by sadoku34.silk.ntts.co.jp with SMTP id RAA04705; Fri, 21 Feb 2014 15:41:04 +0900 Received: from mail147.silk.ntts.co.jp (ccmds32.silk.ntts.co.jp [127.0.0.1]) by ccmds32.silk.ntts.co.jp (8.14.3/8.14.3) with ESMTP id s1L6f4bo029979 for ; Fri, 21 Feb 2014 15:41:04 +0900 Received: from mail147.silk.ntts.co.jp (localhost.localdomain [127.0.0.1]) by mail147.silk.ntts.co.jp (8.14.5/8.14.5/NTTSOFT) with ESMTP id s1L6ewVM011805 for ; Fri, 21 Feb 2014 15:40:58 +0900 Received: from ccmds32 (mail145.silk.ntts.co.jp [10.107.0.145]) by mail147.silk.ntts.co.jp (8.14.5/8.14.5/NTTSOFT) with SMTP id s1L6ewYo011802 for ; Fri, 21 Feb 2014 15:40:58 +0900 Message-ID: <5306F4F8.4050408@po.ntts.co.jp> Date: Fri, 21 Feb 2014 15:40:56 +0900 From: Tomonari Katsumata User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: About binaryTransfer. Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: CC-Mail-V4.3-Client X-CC-Mail-RelayStamp: CC-Mail-V4.3-Server X-Pg-Spam-Score: -0.2 (/) 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 Hi, I have a peformance trouble with 9.3-1100 driver. Running same application(*) with 9.2-1004 and 9.3-1100, It does another behavior. (*) Retrieving 9990 rows with preparedStatement. 9.2-1004: Always flags = 16. ---- 14:09:55.730 (1) simple execute, handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@8232a5d, maxRows=0, fetchSize=0, flags=16 14:09:55.878 (1) simple execute, handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@34e671de, maxRows=0, fetchSize=0, flags=16 ---- 9.3-1100 Repeatedly flags = 48 and 16. The count of "flags=16" is same with 9.2-1004, so "flags=48" is extra executing. ---- 14:20:34.991 (1) simple execute, handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@19cdbc83, maxRows=0, fetchSize=0, flags=48 14:20:34.992 (1) simple execute, handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@304b0cbc, maxRows=0, fetchSize=0, flags=16 ---- This change has caused by below commit. https://github.com/pgjdbc/pgjdbc/commit/dbf76c2d662896c5703cf20d7362e1d061e1e43f It seems that binarytransfer mode is good at dealing with big-data(many columns?many rows?), but some packets are sent/received for this function, right? I want to make 9.3-1100 driver do old behavior like 9.2-1004. What can I do ? regards, ---------------- Tomonari Katsumata -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc