Re: Ambiguous usage of 'any' in explanation

From: KES <kes-kes(at)yandex(dot)ru>
To: David G(dot) Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>
Cc: "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Ambiguous usage of 'any' in explanation
Date: 2018-10-13 09:25:38
Message-ID: 1806231539422738@sas1-00d5718ef836.qloud-c.yandex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

<div xmlns="http://www.w3.org/1999/xhtml"><font face="arial, helvetica, sans-serif">&gt;or NULL if any of the comparisons result in unknown</font></div><div xmlns="http://www.w3.org/1999/xhtml">result in unknown??</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div><br /></div><div><br /></div><div>13.10.2018, 00:37, "David G. Johnston" &lt;david(dot)g(dot)johnston(at)gmail(dot)com&gt;:</div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;"><span style="font-family:Arial,Helvetica,sans-serif;">On Fri, Oct 12, 2018 at 8:04 AM Bruce Momjian &lt;<a href="mailto:bruce(at)momjian(dot)us">bruce(at)momjian(dot)us</a>&gt; wrote:</span><br /></div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">Sorry, but I don't like this wording.  The problem is that the<br />
comparison has two row sets --- the left-hand side, and the right-hand<br />
side.</blockquote><div><br /></div><div style="font-family:arial,helvetica,sans-serif;">Huh...the left hand side must be a non-set scalar or row constructor.</div><div><br /></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">  Each row on the left-hand side is compared with the row set on<br />
the right.  I also don't like people thinking about the result of ANY<br />
since it is really &lt;comparison&gt; ANY that is being used.<br /></blockquote><div><br /></div><div style="font-family:arial,helvetica,sans-serif;">Then there is some more rewording to be done since: "The result of ANY is “true” if any true result is obtained." (v10; 9.22.4)</div><div style="font-family:arial,helvetica,sans-serif;"><br /></div><div style="font-family:arial,helvetica,sans-serif;">Maybe:</div><div style="font-family:arial,helvetica,sans-serif;"><br /></div><div><font face="arial, helvetica, sans-serif">The result of ANY is “true” if the comparison returns true for any subquery row; otherwise the result is “false” (or NULL if any of the comparisons result in unknown)</font><br /></div><div><font face="arial, helvetica, sans-serif"><br /></font></div><div><font face="arial, helvetica, sans-serif">David J.</font></div><div><font face="arial, helvetica, sans-serif"><br /></font></div></div></div></div></div>
</blockquote>

Attachment Content-Type Size
unknown_filename text/html 2.3 KB

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2018-10-13 17:31:48 Re: Ambiguous usage of 'any' in explanation
Previous Message Bruce Momjian 2018-10-13 03:23:09 Re: Ambiguous usage of 'any' in explanation