Re: functions and plans

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: functions and plans
Дата
Msg-id 3236.1148392520@sss.pgh.pa.us
обсуждение исходный текст
Ответ на functions and plans  (Sim Zacks <sim@compulab.co.il>)
Ответы Re: functions and plans  (Sim Zacks <sim@compulab.co.il>)
Список pgsql-general
Sim Zacks <sim@compulab.co.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FUNCTION returns SETOF
Следующее
От: Sim Zacks
Дата:
Сообщение: Re: functions and plans