pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: josh@agliodbs.com
Cc: Stephen Denne <Stephen.Denne@datamail.co.nz>
Cc: Kris Jurka <books@ejurka.com>
Cc: PostgreSQL - JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC, prepared queries, and partitioning
Date: Thu, 14 Feb 2008 00:59:26 -0500
Message-ID: <1442.1202968766@sss.pgh.pa.us> (raw)
In-Reply-To: <47B37F51.2010003@opencloud.com>
References: <200802131005.30553.josh@agliodbs.com>
	<F0238EBA67824444BC1CB4700960CB4804A4F683@dmpeints002.isotach.com>
	<1202939756.16770.517.camel@ebony.site>
	<200802131423.24613.josh@agliodbs.com>
	<47B37549.3@opencloud.com>
	<1202944752.16770.568.camel@ebony.site>
	<47B37BDA.8020702@opencloud.com>
	<47B37F51.2010003@opencloud.com>

Oliver Jowett <oliver@opencloud.com> writes:
> Another possibility is to make the unnamed statement behaviour in the 
> server more aggressive.

Upthread I suggested making that conditional on a GUC variable ...
does that seem reasonable?

We've touched on how a "clean" solution to this would require a protocol
change, but I'm not convinced that a change at the protocol-message
level is all that great a solution.  That way means that only the lowest
layer on the client side has any direct access to the options; and that
layer is really the least likely to understand what the best choice for
a given query is.  So you immediately are faced with having to design
client-side APIs to expose the behavior upward.  For instance JDBC would
need to expose an API to calling applications, and the same for libpq
and other client libraries.

If we drive this off a GUC variable then the extra signaling is already
solved, or at worst soluble with a general-purpose API addition that can
address other issues too.

			regards, tom lane



view thread (41+ messages)  latest in thread

Message-ID: <1442.1202968766@sss.pgh.pa.us>
Permalink:  ../1442.1202968766@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1442.1202968766@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, oliver@opencloud.com, simon@2ndquadrant.com, josh@agliodbs.com, Stephen.Denne@datamail.co.nz, books@ejurka.com
  Subject: Re: JDBC, prepared queries, and partitioning
  In-Reply-To: <1442.1202968766@sss.pgh.pa.us>
  References: <200802131005.30553.josh@agliodbs.com> <F0238EBA67824444BC1CB4700960CB4804A4F683@dmpeints002.isotach.com> <1202939756.16770.517.camel@ebony.site> <200802131423.24613.josh@agliodbs.com> <47B37549.3@opencloud.com> <1202944752.16770.568.camel@ebony.site> <47B37BDA.8020702@opencloud.com> <47B37F51.2010003@opencloud.com> <1442.1202968766@sss.pgh.pa.us>

* 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