Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 51F3E9FB5CC for ; Thu, 25 Jan 2007 03:44:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 43891-05 for ; Thu, 25 Jan 2007 03:44:17 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by postgresql.org (Postfix) with ESMTP id B69729FB2E6 for ; Thu, 25 Jan 2007 03:44:18 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so846413nfb for ; Wed, 24 Jan 2007 23:44:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OuLIBVt0LIrUDgYAfL4gl3DBeL4vEKMnwj+7xyPlyY7tsh0SUMIfU+Wg4oR8HPweIpIxp7hw4PCnYorEhVVZFqmxrUGBoojGpbkaBfKw1h1hVzi6ps1XFHdu/0TgDrNzATBuft1RI40cgQVlwlXKYh5XfjaLNcDt5+06+aHVP7o= Received: by 10.82.184.2 with SMTP id h2mr747376buf.1169711057092; Wed, 24 Jan 2007 23:44:17 -0800 (PST) Received: by 10.82.161.3 with HTTP; Wed, 24 Jan 2007 23:44:17 -0800 (PST) Message-ID: <1f30b80c0701242344t1e568d28ya198044159d4865c@mail.gmail.com> Date: Thu, 25 Jan 2007 12:44:17 +0500 From: imad To: "Tom Lane" Subject: Re: Postgres Stored Procedure Call Function Return Type OID Caching Problem Cc: "Feng Chen" , pgsql-odbc@postgresql.org In-Reply-To: <9954.1169676956@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24535_2899608.1169711057035" References: <0D1719326D64BD4E9F92A0C1202376780192A257@eserv.covergence.com> <1f30b80c0701241150h597ae274wb10265fa29921386@mail.gmail.com> <0D1719326D64BD4E9F92A0C1202376780192A28C@eserv.covergence.com> <9954.1169676956@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/63 X-Sequence-Number: 8602 ------=_Part_24535_2899608.1169711057035 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/25/07, Tom Lane wrote: > > "Feng Chen" 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? > > I suspect the problem > is not with the return type at all, but with some table or other type > referenced within the function body. Although pg_depend handles the dependency of return types of the functions but the weird thing is that his pg_proc entries show invalid type OID for return type. Something wrong with his PG instance probably. --Imad www.EnterpriseDB.com ------=_Part_24535_2899608.1169711057035 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On 1/25/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"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?

I suspect the problem
is not with the return type at all, but with some table or other type
referenced within the function body.

Although pg_depend handles the dependency of return types of the functions but the weird thing is that his pg_proc entries show invalid type OID for return type. Something wrong with his PG instance probably.

--Imad
www.EnterpriseDB.com
------=_Part_24535_2899608.1169711057035--