pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Feng Chen <fchen@covergence.com>
Cc: imad <immaad@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Postgres Stored Procedure Call Function Return Type OID Caching Problem
Date: Wed, 24 Jan 2007 17:15:56 -0500
Message-ID: <9954.1169676956@sss.pgh.pa.us> (raw)
In-Reply-To: <0D1719326D64BD4E9F92A0C1202376780192A28C@eserv.covergence.com>
References: <0D1719326D64BD4E9F92A0C1202376780192A257@eserv.covergence.com>
	<1f30b80c0701241150h597ae274wb10265fa29921386@mail.gmail.com>
	<0D1719326D64BD4E9F92A0C1202376780192A28C@eserv.covergence.com>

"Feng Chen" <fchen@covergence.com> writes:
> The problem is that I should not have to and cannot re-load the
> functions every now and then. Why would the type id change and the
> function still references to the old type id thus fails to get the right
> results?

It's not possible in any modern version of PG to drop the function's
return type without dropping the function too.  I suspect the problem
is not with the return type at all, but with some table or other type
referenced within the function body.  Currently the only real solution
to that is to use EXECUTE for every SQL command that touches a transient
object, so that plpgsql won't try to cache a plan for the command.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <9954.1169676956@sss.pgh.pa.us>
Permalink:  ../9954.1169676956@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9954.1169676956@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-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fchen@covergence.com, immaad@gmail.com
  Subject: Re: Postgres Stored Procedure Call Function Return Type OID Caching Problem
  In-Reply-To: <9954.1169676956@sss.pgh.pa.us>
  References: <0D1719326D64BD4E9F92A0C1202376780192A257@eserv.covergence.com> <1f30b80c0701241150h597ae274wb10265fa29921386@mail.gmail.com> <0D1719326D64BD4E9F92A0C1202376780192A28C@eserv.covergence.com> <9954.1169676956@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