Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDZuM-0004Hp-G8 for pgsql-jdbc@postgresql.org; Mon, 17 Sep 2012 11:54:34 +0000 Received: from mail-oa0-f46.google.com ([209.85.219.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDZuL-0005ke-0R for pgsql-jdbc@postgresql.org; Mon, 17 Sep 2012 11:54:33 +0000 Received: by oago6 with SMTP id o6so4608577oag.19 for ; Mon, 17 Sep 2012 04:54:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=BF6QIcARVLo0iaqVHJYq53v3kyUf18v+OtKH2DTRWnA=; b=HmyFhPqDKWU/XGdj+/OCaa/rDjdx1cDXFhLlta7eRG8Zt5Vg/mHHhuUS5Apprk/Cb7 OdtkwniQtomExr/oX3AWd6POxsmhRZqQHFne11Zj5eBEr5GX3QCSH67uOJMBeUTbC/3U R+qSC8Dswx8z1YubwwPlC31nAOdJJaRogfMRMfOqV7zhBXxo+X+d+HPuHIAsf66DRYCx t0P/iNbGSPPuQ4bgF9bN/ePoOItUzToiCw0Rk/HZl6bu3X6Maw5AGcqkPL/Kb5BHnhqo VSdXlDjZv0KPUzjBi782icNbQ9yTKN7HyFbNZECLTp+F+uBszENt55EiL4xp6ovZPhJA 1Oqw== Received: by 10.60.22.33 with SMTP id a1mr11097471oef.57.1347882872028; Mon, 17 Sep 2012 04:54:32 -0700 (PDT) Received: from ayaki.localdomain (124-169-33-9.dyn.iinet.net.au. [124.169.33.9]) by mx.google.com with ESMTPS id a20sm8403199oei.2.2012.09.17.04.54.28 (version=SSLv3 cipher=OTHER); Mon, 17 Sep 2012 04:54:30 -0700 (PDT) Message-ID: <50570F71.7090401@ringerc.id.au> Date: Mon, 17 Sep 2012 19:54:25 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Alexander Stanier CC: Maciek Sakrejda , Dave Cramer , pgsql-jdbc@postgresql.org Subject: Re: Change in Log Format and Prepared Statements References: <5051D5DA.8050404@egsgroup.com> <5056CA0D.7090109@egsgroup.com> In-Reply-To: <5056CA0D.7090109@egsgroup.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnp6WS4SsvUo0vSq6bp1UogRNTXSiTMBYYQqEMhPLP+0zhMLh+qDn3YiwqNLaK8Mh/c8Osk X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/37 X-Sequence-Number: 23273 On 09/17/2012 02:58 PM, Alexander Stanier wrote: > Thanks Maciek for your advice which I will pass back to our Java > developers. We are using a combination of Torque and Hibernate to access > the database via jdbc. I think Hibernate passes parameters as you > suggest but Torque doesn't. We are slowly moving away from Torque to > Hibernate. > > Do you know if there is any documentation on the "unnamed variant" of > prepared statements? I've read the pages on PREPARE and EXECUTE but they > don't go into much depth about what happens in the background. The v3 protocol uses something like PREPARE and EXECUTE, but not those statements as such. You want the documentation on the fe/be protocol: http://www.postgresql.org/docs/current/static/protocol.html http://www.postgresql.org/docs/current/static/protocol-overview.html#PROTOCOL-QUERY-CONCEPTS http://www.postgresql.org/docs/current/static/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY For the exact communications used by PgJDBC you're best off checking the sources. I haven't read the wire protocol / backend part yet. -- Craig Ringer