Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id CDDA89F942F for ; Fri, 1 Dec 2006 05:45:57 -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 79960-08 for ; Fri, 1 Dec 2006 05:45:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by postgresql.org (Postfix) with ESMTP id E620E9FA0EE for ; Fri, 1 Dec 2006 05:45:51 -0400 (AST) Received: by py-out-1112.google.com with SMTP id d32so1793226pye for ; Fri, 01 Dec 2006 01:45:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=j+CswyZUoeyejHgZkW5lTT+spWj9+1dGiI8yAj3UDxhL4RIMq1jwSFIMpruK+t3pQYZ+T2/pNh4N1Dk+WhCQ8eOOVpVnYxREma9H/jCpy0wkBi/nCmWbvhgfQ1GZCRN0lT9DuFQ/STBx6hFvR5eNdDW7acRgyfm2hDLmg+2id6E= Received: by 10.35.103.12 with SMTP id f12mr683442pym.1164966350864; Fri, 01 Dec 2006 01:45:50 -0800 (PST) Received: by 10.35.80.10 with HTTP; Fri, 1 Dec 2006 01:45:50 -0800 (PST) Message-ID: Date: Fri, 1 Dec 2006 15:15:50 +0530 From: "Rajesh Kumar Mallah" To: "Aaron Bono" Subject: Re: PostgreSQL and Performance of Functions Cc: "Lista Postgres" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1186_9838351.1164966350819" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/3 X-Sequence-Number: 23795 ------=_Part_1186_9838351.1164966350819 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/1/06, Aaron Bono wrote: > > Recently I have been put on a project that uses DB2 (not my choice). I am > using functions for reports and was told this may not be allowed. They > said: > > One gap is the ability to tune the code in the function (not really > static) or to perform real-time analysis of performance problems. > Tuning the code in function requires to change the file containing the function defination and reloading the function. Hence the cycle of performance tuning is longer. Regarding "real time analysis" what I understand is EXPLAIN ANALYSE (of main SQL using the function) in postgresql cannot provide the realtime analysis of the performace of queries inside the function. probably such a limitation may exists in db2 also. I think the gap is genuine. regds mallah. I normally use PostgreSQL for all my applications (this being an > exception). Does anyone know what this statement is about and, more > importantly, does PostgreSQL have the same limitations? > > Thanks, > Aaron > > -- > ================================================================== > Aaron Bono > Aranya Software Technologies, Inc. > http://www.aranya.com > http://codeelixir.com > ================================================================== ------=_Part_1186_9838351.1164966350819 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 12/1/06, Aaron Bono <postgresql@aranya.com> wrote:
Recently I have been put on a project that uses DB2 (not my choice).  I am using functions for reports and was told this may not be allowed.  They said:

One gap is the ability to tune the code in the function (not really static) or to perform real-time analysis of performance problems.

Tuning the code in function requires to change the file containing the function
defination and reloading the function. Hence the cycle of performance tuning is
longer.

Regarding "real time analysis" what I understand is

EXPLAIN ANALYSE (of main SQL using the function) in postgresql cannot
provide the realtime analysis of the performace of queries inside the function.
probably such a limitation may exists in db2 also.

I think the gap is genuine.

regds
mallah.







I normally use PostgreSQL for all my applications (this being an exception).  Does anyone know what this statement is about and, more importantly, does PostgreSQL have the same limitations?

Thanks,
Aaron

--
==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

------=_Part_1186_9838351.1164966350819--