| От | Tom Lane |
|---|---|
| Тема | Re: CHECK constraints and optimizations |
| Дата | |
| Msg-id | 26714.1083891741@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: CHECK constraints and optimizations (Martijn van Oosterhout <kleptog@svana.org>) |
| Ответы |
Re: CHECK constraints and optimizations
|
| Список | pgsql-general |
Martijn van Oosterhout <kleptog@svana.org> writes:
> I can't see why this wouldn't work.
Doubtless you could do it. The problem with the idea is that those
inference tests are pretty expensive. I think that any such thing would
waste significant numbers of cycles on ordinary queries while only being
a win on a few poorly-written queries.
We do have to make a tradeoff between planning time and execution time,
and I fear that this idea is not going to be a win in those terms.
If you feel like experimenting, though, go for it ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера