Re: Minor mathematical error in documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Minor mathematical error in documentation
Дата
Msg-id 15233.1200605102@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Minor mathematical error in documentation  (Russell Smith <mr-russ@pws.com.au>)
Ответы Re: Minor mathematical error in documentation  (Russell Smith <mr-russ@pws.com.au>)
Список pgsql-bugs
Russell Smith <mr-russ@pws.com.au> writes:
> In-equality transformations do not guarantee that y > 1.5x == y/x >
> 1.5.  This is only true for x>0, y < 1.5*x for x<0.  I have not posted a
> patch as I'm not sure what is the best way to change the example.

Seems a bit nit-picky, but we could change the example to

SELECT ... WHERE x > 0 AND y/x > 1.5;
becomes
SELECT ... WHERE CASE WHEN x > 0 THEN y/x > 1.5 ELSE false END;

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3882: unexpected PARAM_SUBLINK ID
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3883: Autovacuum deadlock with truncate?