Re: performance issue: logical operators are slow inside SQL function: missing optimalization? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: performance issue: logical operators are slow inside SQL function: missing optimalization?
Date
Msg-id 16289.1283092264@sss.pgh.pa.us
Whole thread Raw
In response to performance issue: logical operators are slow inside SQL function: missing optimalization?  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: performance issue: logical operators are slow inside SQL function: missing optimalization?
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I testing a simple use case and I was surprised with very slow
> execution of SQL functions

The one case is inline-able and the other not (because it would result
in double evaluation of the volatile function random()).
See EXPLAIN VERBOSE.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [BUGS] BUG #5305: Postgres service stops when closing Windows session
Next
From: Pavel Stehule
Date:
Subject: Re: performance issue: logical operators are slow inside SQL function: missing optimalization?