pgsql: Remove troublesome Asserts in cost_mergejoin().
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Remove troublesome Asserts in cost_mergejoin(). |
| Дата | |
| Msg-id | E1RXfUN-0003Hq-6n@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Remove troublesome Asserts in cost_mergejoin(). While logically correct, these two Asserts could fail depending on the vagaries of floating-point arithmetic. In particular, on machines with floating-point registers wider than standard "double" values, it was possible for the compiler to compare a rounded-to-double value already stored in memory with an unrounded long double value still in a register. Given the preceding checks, these assertions aren't adding much, so let's just get rid of them rather than try to find a compiler-proof fix. Per report from Pavel Stehule. Given the lack of previous complaints, and the fact that only developers would be likely to trip over it, I'm only going to change this in HEAD, even though the code has been like this for a long time. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/ff68b256a533b398e3420750f34d161aeee4e099 Modified Files -------------- src/backend/optimizer/path/costsize.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера