Re: plpgsql functions and the planner

From: "Douglas McNaught" <doug(at)mcnaught(dot)org>
To: "Matthew Dennis" <mdennis(at)merfer(dot)net>
Cc: PGSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: plpgsql functions and the planner
Date: 2008-04-27 13:45:54
Message-ID: 5ded07e00804270645l7e6f9005pca926586ad4e9d8d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Apr 27, 2008 at 2:06 AM, Matthew Dennis <mdennis(at)merfer(dot)net> wrote:
> Do SQL statements inside of plpgsql functions get planned upon every
> execution, only when the function is first executed/defined, or something
> else entirely?

They are planned on first execution and the plan is cached for later use.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Stark 2008-04-27 14:30:40 Re: plpgsql functions and the planner
Previous Message Ivan Sergio Borgonovo 2008-04-27 12:05:16 Re: taking actions on rollback (PHP)