Re: invalidating cached plans

From: Neil Conway <neilc(at)samurai(dot)com>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: invalidating cached plans
Date: 2005-03-15 05:53:06
Message-ID: 42367842.5090405@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Qingqing Zhou wrote:
> I don't quite understand the difference between a SQL function and a
> PL/PgSQL function here - since there is a overlapped functionality that we
> could implement by SQL function or by PL/PgSQL function.

The difference is between an inlined function (which is integrated
directly into the plan of the query that invokes it) and a function that
is not inlined. Only SQL functions can be inlined, and only some SQL
functions at that. With an out-of-line function, we just invoke the
function via the fmgr infrastructure -- if it chooses to create any
plans (e.g. via SPI), that is its own business, and they would be
treated as distinct plans by the cache module.

-Neil

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-03-15 06:00:24 Re: invalidating cached plans
Previous Message Tom Lane 2005-03-15 05:52:03 Re: [HACKERS] [ADMIN] invalid multibyte character for locale