From: Heikki Linnakangas <heikki@enterprisedb.com>
To: YourSoft <yoursoft@freemail.hu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver bug?
Date: Mon, 05 Mar 2007 11:43:13 +0000
Message-ID: <45EC0251.3030105@enterprisedb.com> (raw)
In-Reply-To: <45EBF772.9070604@freemail.hu>
References: <45EBF772.9070604@freemail.hu>
YourSoft wrote:
> When you call a pgsql stored procedure (with PreparedStatement), that
> calls an other stored procedure, and you recall the stored procedure
> after dropping and recreating second stored procedure, the calling will
> throw an exception with:
That's a known issue. The first time you call the procedure, it's
compiled and cached. The second time you call it, the cached plan is no
longer valid because the function it depends on has been dropped and
recreated.
The good news is that Tom Lane has added support for plan invalidation
for 8.3 branch, so this should be fixed in the next major release. Until
that, you can just disconnect and reconnect, which clears the
per-connection cache, and it should work.
BTW, this problem is not specific to JDBC, another mailing list would've
been more appropriate.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki@enterprisedb.com, yoursoft@freemail.hu
Subject: Re: JDBC driver bug?
In-Reply-To: <45EC0251.3030105@enterprisedb.com>
References: <45EBF772.9070604@freemail.hu> <45EC0251.3030105@enterprisedb.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