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

Re: STRICT SQL functions never inline

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: STRICT SQL functions never inline
Date: 2011-11-09 00:29:34
Message-ID: 14182.1320798574@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
Josh Berkus <josh(at)agliodbs(dot)com> writes:
> After having some production issues, I did some testing and it seems
> that any SQL function declared STRICT will never inline.

It won't unless the planner can prove that the resulting expression
behaves the same, ie, is also strict for *all* the parameters.  Which
in most cases isn't true, or at least is very difficult to prove.
This is not a bug.

			regards, tom lane

In response to

pgsql-performance by date

Next:From: Venkat BalajiDate: 2011-11-09 09:25:37
Subject: : bg_writer overloaded ?
Previous:From: Andres FreundDate: 2011-11-09 00:25:36
Subject: Re: STRICT SQL functions never inline

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