Re: SQL Function Performance - Mailing list pgsql-performance

From Adnan DURSUN
Subject Re: SQL Function Performance
Date
Msg-id BAY106-DAV24D1B5423A3C728DADA0FAFA070@phx.gbl
Whole thread Raw
In response to SQL Function Performance  ("Adnan DURSUN" <a_dursun@hotmail.com>)
List pgsql-performance
>Date: 02/13/06 22:09:48
>Subject: RE: [PERFORM] SQL Function Performance
 

>I've run into this issue. It basically comes down to the plan that is being used inside the function is not the same as the plan used when you issue the query manually >outside of the function.  Although I'm no expert on when plans are prepared and re-evaluated for functions, I know that they are not re-evaluated each time to execute the >function.

 in my case; both direct query and sql function gererate same execution plan. Also, execution plan belongs to the sql function better than direct sql query plan. But, direct sql result comes less than 1 second. sql function result comes about in 50 seconds.

Adnan DURSUN
ASRIN Bilişim Ltd.Şti

pgsql-performance by date:

Previous
From: "Adnan DURSUN"
Date:
Subject: Re: SQL Function Performance
Next
From: "Adnan DURSUN"
Date:
Subject: Re: SQL Function Performance