| From: | Sim Zacks <sim(at)compulab(dot)co(dot)il> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: functions and plans |
| Date: | 2006-05-23 15:09:03 |
| Message-ID: | e4v561$1p1m$1@news.hub.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Truncate won't work for me because I don't completely empty the table, I
just empty it for that user.
Each user has the table populated with his data, basically to work like
a temporary table. When the user runs a function it repopulates his
working table and then until he runs the function again he has that
dataset to work with. (I just noticed I wrote select and delete,
actually it deletes and then selects)
Tom Lane wrote:
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sim Zacks | 2006-05-23 15:19:15 | background triggers? |
| Previous Message | venu Vempati | 2006-05-23 15:03:14 | password reset |