From: Josh Berkus <josh@agliodbs.com>
To: PostgreSQL - JDBC <pgsql-jdbc@postgresql.org>
Subject: JDBC, prepared queries, and partitioning
Date: Wed, 13 Feb 2008 10:05:30 -0800
Message-ID: <200802131005.30553.josh@agliodbs.com> (raw)
All,
Since JDBC always prepares and plan-caches queries, it makes it hard to use
partitioning with a database connected to a JDBC connection pool; successive
queries in the same session will select the wrong partition, or scan the
whole partition set.
Is there any workaround for this, either on 8.2 or 8.3?
--
Josh Berkus
PostgreSQL @ Sun
San Francisco
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: josh@agliodbs.com
Subject: Re: JDBC, prepared queries, and partitioning
In-Reply-To: <200802131005.30553.josh@agliodbs.com>
References: <200802131005.30553.josh@agliodbs.com>
* 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