| От | Sim Zacks |
|---|---|
| Тема | functions and plans |
| Дата | |
| Msg-id | e4v29u$1ehh$1@news.hub.org обсуждение |
| Ответы |
Re: functions and plans
Re: functions and plans |
| Список | 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?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера