| От | Josh Harrison |
|---|---|
| Тема | Re: update problem in partitioned tables |
| Дата | |
| Msg-id | 8d89ea1d0709121005i4bd0e4bex559aa23646af453a@mail.gmail.com обсуждение |
| Ответ на | Re: update problem in partitioned tables (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
"Josh Harrison" < joshques@gmail.com> writes:
> Now I create this function to redirect the inserts and updates on the
> master table.
Uh ... there never will be any updates in the master table, since it
hasn't got any entries.
What you'd need is an insert trigger on the master and update triggers
on each child table. I think the logic of this trigger is wrong for
the update case anyway.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера