On Sun, Apr 27, 2008 at 2:06 AM, Matthew Dennis <mdennis@xxxxxxxxxx> 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