From: Jeff Davis <pgsql@j-davis.com>
To: Peter Geoghegan <peter@2ndquadrant.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Arbitrary whitespace restrictions on range types
Date: Tue, 18 Dec 2012 17:42:35 -0800
Message-ID: <1355881355.24766.203.camel@sussancws0025> (raw)
In-Reply-To: <CAEYLb_XuSjZ-oETNr_-+7QKTD_EF0Z29sirnPZmDkEN6AZxwmw@mail.gmail.com>
References: <50D0FCC6.10905@agliodbs.com>
<CAEYLb_XuSjZ-oETNr_-+7QKTD_EF0Z29sirnPZmDkEN6AZxwmw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Wed, 2012-12-19 at 00:06 +0000, Peter Geoghegan wrote:
> On 18 December 2012 23:31, Josh Berkus <josh@agliodbs.com> wrote:
> > Jeff, Hackers:
> >
> > Is there a strong reason why this has to error?
>
> Having taken a look at the range I/O routines, I surmise that it was
> just easier to write range_parse() such that whitespace is included
> within <string> tokens:
There was some discussion about it, and the decision was made to match
record literal parsing for the sake of consistency. In a record literal,
spaces are considered to be a part of the value, so they are for range
types, as well.
Regards,
Jeff Davis
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: pgsql@j-davis.com, peter@2ndquadrant.com, josh@agliodbs.com
Subject: Re: Arbitrary whitespace restrictions on range types
In-Reply-To: <1355881355.24766.203.camel@sussancws0025>
References: <50D0FCC6.10905@agliodbs.com> <CAEYLb_XuSjZ-oETNr_-+7QKTD_EF0Z29sirnPZmDkEN6AZxwmw@mail.gmail.com> <1355881355.24766.203.camel@sussancws0025>
* 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