Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group