JDBC, prepared queries, and partitioning

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: PostgreSQL - JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC, prepared queries, and partitioning
Date: 2008-02-13 18:05:30
Message-ID: 200802131005.30553.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2008-02-13 18:51:24 Re: JDBC, prepared queries, and partitioning
Previous Message Kris Jurka 2008-02-12 23:45:16 Re: 8.3 build 603 build error on Fedora 8