| От | Tom Lane |
|---|---|
| Тема | Re: autovacuum ignore tables |
| Дата | |
| Msg-id | 3959.1159566492@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: autovacuum ignore tables ("Sriram Dandapani" <sdandapani@counterpane.com>) |
| Список | pgsql-admin |
"Sriram Dandapani" <sdandapani@counterpane.com> writes:
> The jdbc inserts go into the main parent table and check constraints
> redirect them to child tables.
A check constraint can't redirect anything. Are you saying that you use
a trigger to try to insert the row into *each* child table, relying on
the constraints to make all except one insert fail? Ugh. You'd do a
lot better to duplicate the partitioning-rule knowledge in the trigger,
and do only one insert that should succeed --- no wasted cycles, and no
need for a subtransaction.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера