Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8874C1337B93 for ; Tue, 8 Mar 2011 13:51:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 45896-05 for ; Tue, 8 Mar 2011 17:51:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E55F91337B82 for ; Tue, 8 Mar 2011 13:51:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p28Hpf6S022831; Tue, 8 Mar 2011 12:51:41 -0500 (EST) To: "Kevin Grittner" cc: bruce@momjian.us, pgsql-docs@postgresql.org Subject: Re: Document that char () ignores spaces only in non-patterncomparisons In-reply-to: <4D760F40020000250003B610@gw.wicourts.gov> References: <4D760F24020000250003B60D@gw.wicourts.gov> <4D760F40020000250003B610@gw.wicourts.gov> <4D760F40020000250003B610@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Tue, 08 Mar 2011 11:13:04 -0600" Date: Tue, 08 Mar 2011 12:51:41 -0500 Message-ID: <22830.1299606701@sss.pgh.pa.us> From: Tom Lane 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/37 X-Sequence-Number: 6470 "Kevin Grittner" writes: > 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. I didn't like it either. I suggest reverting that part of the patch. The added text later on is sufficient. regards, tom lane