functions and plans

From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: functions and plans
Date: 2006-05-23 14:19:56
Message-ID: e4v29u$1ehh$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to figure out some issues with my functions and I was hoping
someone could help me.
My understanding is that the plan is made when the function is run the
first time. That means that running analyze on a table after a function
is run once won't change the plan.

I have a table that I populate, select and delete the data each time the
function is run. Each time I run the function it takes longer to get the
data. In these tests, the data is the exact same every time.

I tried putting vacuum inside the function, but I got an error, cannot
run vacuum inside of function.

Any thoughts?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2006-05-23 14:49:51 Re: background triggers?
Previous Message Tom Lane 2006-05-23 13:55:20 Re: functions and plans