| От | Tom Lane |
|---|---|
| Тема | Re: Question on restoring and compiled plans |
| Дата | |
| Msg-id | 24133.1079708675@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Question on restoring and compiled plans (Richard Huxton <dev@archonet.com>) |
| Ответы |
Re: Question on restoring and compiled plans
|
| Список | pgsql-hackers |
Richard Huxton <dev@archonet.com> writes:
> If I pg_restore a DB and don't ANALYSE before a pl/pgsql trigger activates
> then that trigger's going to be planned based on the default stats forever
> isn't it?
Only for the life of the current backend(s).
If that's still too long for you, you could do a CREATE OR REPLACE FUNCTION
that doesn't actually change anything about the trigger function; that
will force current cached plans to be thrown away.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера