Re: functions and plans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sim Zacks <sim(at)compulab(dot)co(dot)il>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: functions and plans
Date: 2006-05-23 13:55:20
Message-ID: 3236.1148392520@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sim Zacks <sim(at)compulab(dot)co(dot)il> writes:
> 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.

TRUNCATE, maybe?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2006-05-23 14:19:56 functions and plans
Previous Message Tom Lane 2006-05-23 13:49:25 Re: FUNCTION returns SETOF