From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: bruce@momjian.us
To: pgsql-docs@postgresql.org
Subject: Re: Document that char () ignores spaces only in non-patterncomparisons
Date: Tue, 08 Mar 2011 11:13:04 -0600
Message-ID: <4D760F40020000250003B610@gw.wicourts.gov> (raw)
References: <4D760F24020000250003B60D@gw.wicourts.gov>
<4D760F40020000250003B610@gw.wicourts.gov>
Bruce Momjian <bruce@momjian.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-docs@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, bruce@momjian.us
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>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox