pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: YourSoft <yoursoft@freemail.hu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver bug?
Date: Mon, 05 Mar 2007 11:05:04 -0500
Message-ID: <19018.1173110704@sss.pgh.pa.us> (raw)
In-Reply-To: <45EC0251.3030105@enterprisedb.com>
References: <45EBF772.9070604@freemail.hu>
	<45EC0251.3030105@enterprisedb.com>

Heikki Linnakangas <heikki@enterprisedb.com> writes:
> 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.

This behavior will not change in 8.3, because I have no intention of
including function invalidation in the patch.  The correct answer is
"don't do that --- use CREATE OR REPLACE FUNCTION instead".

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <19018.1173110704@sss.pgh.pa.us>
Permalink:  ../19018.1173110704@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19018.1173110704@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, heikki@enterprisedb.com, yoursoft@freemail.hu
  Subject: Re: JDBC driver bug?
  In-Reply-To: <19018.1173110704@sss.pgh.pa.us>
  References: <45EBF772.9070604@freemail.hu> <45EC0251.3030105@enterprisedb.com> <19018.1173110704@sss.pgh.pa.us>

* 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