Re: SQL function inlining

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John D(dot) Burger" <john(at)mitre(dot)org>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: SQL function inlining
Date: 2006-10-20 01:41:28
Message-ID: 8304.1161308488@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"John D. Burger" <john(at)mitre(dot)org> writes:
> I'm having trouble figuring out when (if) the planner inlines sql
> functions (I'm running 7.4). I was assuming that pure sql functions
> are kind of like views with parameters, but I can't seem to see any
> cases where functions that select from a table get inlined.

That's 'cause there aren't any ... especially not in 7.4 ...
we inline simple scalar functions of the form "select scalar-expression"
but that's about it.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karl O. Pinc 2006-10-20 02:22:43 plpgsql FOUND bug when SELECT INTO assigns a NULL value?
Previous Message John D. Burger 2006-10-20 01:31:22 SQL function inlining