Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 316DE9FB4D9 for ; Mon, 5 Mar 2007 07:43:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 81234-04 for ; Mon, 5 Mar 2007 07:43:22 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 129D09FB446 for ; Mon, 5 Mar 2007 07:43:25 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1108609ugf for ; Mon, 05 Mar 2007 03:43:24 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=bLAZAqORvDs8AVcGb49cxPKbv2jdxr+TKxY+CHG9vT4FWlT6+IfRnkYcjQqY0rOPZ04vPvLmF5l1qsqEYUmLZ/xrfV5Av5NmfRZFbnY1/VUd0g5vSmVrVrWnJVHv+fuYZ4Mqa9CK0f3jYmYA9GqttE31pyIq6oOdgAYroQ3jwzs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=C6tns54iqUxZraEYMhEEuwHuN//4cUSxUsU4nvrd7LVy97aJbIt3e2Oo7ZqdNBEVNrncU789cpK+wSjvoMbQH1jytNV1XVbn4AlgXbxuxemb+4Fr1vYzmaLbEO2Ya+XsJuO7UNrBfrAqtBEI0ZgjUIt10cWFxtKp82x/lkkkV+Q= Received: by 10.66.239.18 with SMTP id m18mr10157998ugh.1173095000377; Mon, 05 Mar 2007 03:43:20 -0800 (PST) Received: from ?172.24.32.95? ( [62.232.55.118]) by mx.google.com with ESMTP id k30sm6756465ugc.2007.03.05.03.43.18; Mon, 05 Mar 2007 03:43:19 -0800 (PST) Message-ID: <45EC0251.3030105@enterprisedb.com> Date: Mon, 05 Mar 2007 11:43:13 +0000 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: YourSoft CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC driver bug? References: <45EBF772.9070604@freemail.hu> In-Reply-To: <45EBF772.9070604@freemail.hu> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/25 X-Sequence-Number: 16739 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