Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 427632E0318 for ; Wed, 13 Feb 2008 14:10:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30726-04-4 for ; Wed, 13 Feb 2008 14:10:10 -0400 (AST) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by postgresql.org (Postfix) with ESMTP id 6B1C82E0310 for ; Wed, 13 Feb 2008 14:10:01 -0400 (AST) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO [192.168.2.3]) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 15305784 for pgsql-jdbc@postgresql.org; Wed, 13 Feb 2008 10:10:38 -0800 From: Josh Berkus Organization: PostgreSQL @ Sun To: PostgreSQL - JDBC Subject: JDBC, prepared queries, and partitioning Date: Wed, 13 Feb 2008 10:05:30 -0800 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802131005.30553.josh@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/50 X-Sequence-Number: 18257 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