Re: Minor mathematical error in documentation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Minor mathematical error in documentation
Date: 2008-01-17 21:25:02
Message-ID: 15233.1200605102@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Russell Smith <mr-russ(at)pws(dot)com(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marc G. Fournier 2008-01-17 22:19:14 Re: [ADMIN] postgresql in FreeBSD jails: proposal
Previous Message Tom Lane 2008-01-17 20:45:12 Re: BUG #3882: unexpected PARAM_SUBLINK ID