Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5FB9E1337C7F for ; Tue, 8 Mar 2011 13:26:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 90318-01-5 for ; Tue, 8 Mar 2011 17:26:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 8330D1337C25 for ; Tue, 8 Mar 2011 13:13:09 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 08 Mar 2011 11:13:08 -0600 Message-Id: <4D760F40020000250003B610@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 08 Mar 2011 11:13:04 -0600 From: "Kevin Grittner" To: , Subject: Re: Document that char () ignores spaces only in non-patterncomparisons References: <4D760F24020000250003B60D@gw.wicourts.gov> <4D760F40020000250003B610@gw.wicourts.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/36 X-Sequence-Number: 6469 Bruce Momjian wrote: > A private email I received indicated that our documentation about > ignoring trailing spaces in CHAR() comparisons was slightly > inaccurate. I have update our docs to indicate it is only > non-pattern comparisons that ignore spaces with CHAR(). Applied > doc patch attached. This language: | disregarded when non-pattern comparing two values seems quite awkward. Isn't it a stretch to consider pattern-matching predicates to be compares, anyway? It seems like it would be better to distinguish between comparisons, where the trailing spaces are ignored, and other predicates such as pattern matching, where trailing spaces are not ignored. -Kevin