Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation |
| Дата | |
| Msg-id | 5662.1542040384@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #15212: Default values in partition tables don't work asexpected and allow NOT NULL violation (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: BUG #15212: Default values in partition tables don't work asexpected and allow NOT NULL violation
Re: BUG #15212: Default values in partition tables don't work asexpected and allow NOT NULL violation |
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> One of the guiding principles that I think we should hold for
> partitioning is that operating directly into the partition should be
> seen as only an optimization compared to inserting into the parent table
> -- thus it should not behave differently. Applying different default
> values depending on where you're inserting into goes counter to that
> principle.
I'm not entirely convinced that I buy that argument, especially not in
a case like this where it introduces logical inconsistencies where there
otherwise wouldn't be any.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера