Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwAEN-0008Nw-BK for pgsql-jdbc@arkaria.postgresql.org; Wed, 03 Dec 2014 13:44:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwAEM-0001SR-P8 for pgsql-jdbc@arkaria.postgresql.org; Wed, 03 Dec 2014 13:44:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XwAEM-0001SH-4d for pgsql-jdbc@postgresql.org; Wed, 03 Dec 2014 13:44:34 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwAEI-0007fQ-Vf for pgsql-jdbc@postgresql.org; Wed, 03 Dec 2014 13:44:32 +0000 Received: from ayaki.localdomain (124-169-108-102.dyn.iinet.net.au [124.169.108.102]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0M0KWj-1YAPDz0s3x-00ubJs; Wed, 03 Dec 2014 14:44:28 +0100 Message-ID: <547F13B5.8080504@2ndquadrant.com> Date: Wed, 03 Dec 2014 21:44:21 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Albe Laurenz , Guillaume Cottenceau *EXTERN* , "pgsql-jdbc@postgresql.org" Subject: Re: performance question: protocol v2 vs v3 References: <547EF301.3070706@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:WmIHsrbpOjUK+bwLXQE3mVWvLEc0Fftg8QNJyp9hpx0 +kKvewF5c2NbdiphvzFBHzKfLnVfcxMqc574yPTncB+I1cXOBn oj0uo1+M6rQdrSO/d3t/ST+dfXxq0r8dzWvg10/g/1q4dtkY6Y CivkmiLGJThxisOgZAsbZ3x3LWdF3BnDQSTp43wPoxKsQVFGgr FhLn4JaPphaQNGpQ8CNtvH8B5rvPbSMerM3tml4Rwtba0a0eZl pCG4xiE97v0NiS3UhenNnQcHp9zGHVxaI9pLnAcsvaZtSbVDAd 9Oj2FmO2bxkCPzR0wfGKhR/VK2JAHrRnBkjY/BwsYX74xfxQiM XJcsEmJ75uh/EnpMCxICvy9NBrbpT9Ci6gnhOJBlK X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) 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 On 12/03/2014 07:41 PM, Albe Laurenz wrote: > I didn't know that, thanks for the clarification. Neither did I until I did some performance analysis work recently. It's not always strictly true - in particular, if you're using binary parameters, PgJDBC does a parse and describe, then waits for a response before sending a bind. So there's an extra round trip there. Same if you're doing a batch returning generated keys. In general though, the v3 protocol doesn't add roundtrips. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc