| От | Michael Paesold |
|---|---|
| Тема | Re: [DOCS] Partition: use triggers instead of rules |
| Дата | |
| Msg-id | 474EE385.9030103@gmx.at обсуждение |
| Ответ на | Re: [DOCS] Partition: use triggers instead of rules ("Joshua D. Drake" <jd@commandprompt.com>) |
| Список | pgsql-patches |
Joshua D. Drake wrote: > Michael Paesold wrote: >> I would also add another sentence about *why* the recommendation was >> changed. We have one rule-based setup here, and it has been working >> flawlessly for us,... so personally I don't even know the reasons. >> > > Rules are extremely slow in comparisons and not anywhere near as > flexible. As I said up post yesterday... they work well in the basic > partitioning configuration but anything else they are extremely deficient. Ah, thanks for that summary. How do they compare to triggers dynamically EXECUTEing the inserts? Is that a better solution, or should one really just use the IF ... ELSIF ... ELSIF ... ELSE pattern as suggested in the new docs? (Which means one has to re-create the complete trigger each time a partition is added.) Best Regards Michael Paesold
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера