Re: performance issue: logical operators are slow inside SQL function: missing optimalization?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Marko Tiikkaja <marko(dot)tiikkaja(at)cs(dot)helsinki(dot)fi>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: performance issue: logical operators are slow inside SQL function: missing optimalization?
Date: 2010-08-29 10:56:27
Message-ID: AANLkTinXXbWfDSxNPHKgspJatMLvXQMDKgtYDc6kNLVJ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

2010/8/29 Marko Tiikkaja <marko(dot)tiikkaja(at)cs(dot)helsinki(dot)fi>:
> On 29 Aug 2010, at 13:20, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>>
>> Is strange - so slow function can be replaced by plpgsql function and
>> it's faster
>
> All your SQL language functions were VOLATILE.
>

It's not a problem - planner see inside SQL function - so you don't
need set a flags.

Regards

Pavel Stehule

>
> Regards,
> Marko Tiikkaja
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2010-08-29 11:05:17 Re: [BUGS] BUG #5305: Postgres service stops when closing Windows session
Previous Message Marko Tiikkaja 2010-08-29 10:55:08 Re: performance issue: logical operators are slow inside SQL function: missing optimalization?