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

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 (view raw or flat)
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

pgsql-general by date

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

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