Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E64459FB1DE for ; Sun, 7 Jan 2007 14:55:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 53656-07 for ; Sun, 7 Jan 2007 14:55:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by postgresql.org (Postfix) with ESMTP id 6764C9FB1D6 for ; Sun, 7 Jan 2007 14:55:05 -0400 (AST) Received: from [88.115.1.94] (a88-115-1-94.elisa-laajakaista.fi [88.115.1.94]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 03D0E15132C for ; Sun, 7 Jan 2007 20:55:02 +0200 (EET) Subject: Binary protocol patch v7 From: Mikko Tiihonen To: pgsql-jdbc@postgresql.org Content-Type: text/plain Date: Sun, 07 Jan 2007 20:55:01 +0200 Message-Id: <1168196101.6236.25.camel@mokki.local> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/52 X-Sequence-Number: 16417 Hi, Just to remind you that the I updated the patches for sending receiving columns in v3 binary format are available at: http://mokki.dyndns.org/~mtiihone/postgresql/binarytransfer/ Changes since last update: - fixed handling of empty ResultSet. - fixed ArrayIndexOutOfBounds in CompositeParameterList It passes the current unit test suite and all other applications I have tried it with. I would be interested in any benchmarks. What you would hopefully see is reduced CPU load in both the backend and in the Java application. Also the network traffic should be somewhat reduced. Also, Kris, could you please try to find time to review the patch again and see what still needs to be fixed/clarified/tested before the patch can be accepted. --------------------------- I downloaded BenchmarkSQL 2.3.2 and run it against freshly installed postgres 8.2 backend. Results (best of 10 runs): Jan 7, 2007 CVS: 5891 tpmC - 100% + binaryPatches: 6531 tpmC - 110% The client and server ran on the same host. The Java client used around 25% of available cpu, backend the remaining time, IO was not a bottleneck. Benchmark setup: ---------------- PostgreSQL 8.2.0 with following modified config options: fsync=off, autovacuum=on, stats_row_level=on, redirect_stderr=on, checkpoint_segments=12, max_connections=10, max_prepared_transactions=50, shared_buffers=128MB, standard_conforming_strings=on The BenchmarkSQL was set up with 1 warehouse and 4 terminals. The following URL was used to connect to the backend: jdbc:postgresql://localhost:5432/test?binaryEncoding=true&prepareThreshold=1 Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode) Athlon64 2x2GHz, Linux 2.6.19.1 I ran "vacuumdb --all --full" between each benchmark run to get consistent results. -Mikko