pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Alexander Stanier <alexander.stanier@egsgroup.com>
Cc: Maciek Sakrejda <m.sakrejda@gmail.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Change in Log Format and Prepared Statements
Date: Mon, 17 Sep 2012 19:54:25 +0800
Message-ID: <50570F71.7090401@ringerc.id.au> (raw)
In-Reply-To: <5056CA0D.7090109@egsgroup.com>
References: <5051D5DA.8050404@egsgroup.com>
	<CADK3HHLdcyq54NRCa7qYr0UiBZVxh9np=y1WJrCbq9zKfg1EfA@mail.gmail.com>
	<CAOtHd0Df2_L=k+OxpWgNXso2w298V=D1GY7RDfwczTta=WjaJg@mail.gmail.com>
	<5056CA0D.7090109@egsgroup.com>

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




view thread (11+ messages)  latest in thread

Message-ID: <50570F71.7090401@ringerc.id.au>
Permalink:  ../50570F71.7090401@ringerc.id.au/
Also on:    postgresql.org/message-id/50570F71.7090401@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: ringerc@ringerc.id.au, alexander.stanier@egsgroup.com, m.sakrejda@gmail.com, pg@fastcrypt.com
  Subject: Re: Change in Log Format and Prepared Statements
  In-Reply-To: <50570F71.7090401@ringerc.id.au>
  References: <5051D5DA.8050404@egsgroup.com> <CADK3HHLdcyq54NRCa7qYr0UiBZVxh9np=y1WJrCbq9zKfg1EfA@mail.gmail.com> <CAOtHd0Df2_L=k+OxpWgNXso2w298V=D1GY7RDfwczTta=WjaJg@mail.gmail.com> <5056CA0D.7090109@egsgroup.com> <50570F71.7090401@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox