Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tl8gY-0007ba-2J for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Dec 2012 01:43:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tl8gW-0008VL-1N for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Dec 2012 01:43:00 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tl8gV-0008VF-28 for pgsql-bugs@postgresql.org; Wed, 19 Dec 2012 01:42:59 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tl8gS-00046m-Na for pgsql-bugs@postgresql.org; Wed, 19 Dec 2012 01:42:57 +0000 Received: by mail-pb0-f44.google.com with SMTP id uo1so834122pbc.3 for ; Tue, 18 Dec 2012 17:42:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:from:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding :x-gm-message-state; bh=Ncszjg5pVM5SPXh8Rlfvr0HcSN91PkjYUXlIucqOGrU=; b=l6bkKzrfGOfNaFuTkeP/GNSRMHFMz47930cmQkgbdjwnHwQANn8fQk8iGqqrK4t8vw uP2YHvqsh6aQKQL7l+/cCjJlNAHkAv4WrUOL3pWe4YFLTSn62k0GqLGiFI2j34T/R6dB w9N/YFovaugKBaz3TEaNuMqJf20jkrmwBmLSc7XL74cL72hFe2HhzZHkPJ6GOK7A73NQ 8SOxFtw8wOUkSWcitaq/RMaFzGBM2M4b6dhq9Urlqx6RC1NUyRbgjEdRP6KBppsDwtmZ T54FykJ8g6E3olGjgjytivyJhdeAGTcsNO/EoV+CMBr9P51cp47y+OJ1J6m4neaMJfmw cPog== X-Received: by 10.68.232.42 with SMTP id tl10mr12910370pbc.108.1355881374879; Tue, 18 Dec 2012 17:42:54 -0800 (PST) Received: from ?IPv6:::1? ([2600:3c01::f03c:91ff:fe93:2ae4]) by mx.google.com with ESMTPS id mn5sm2099382pbc.12.2012.12.18.17.42.53 (version=SSLv3 cipher=OTHER); Tue, 18 Dec 2012 17:42:54 -0800 (PST) Subject: Re: Arbitrary whitespace restrictions on range types From: Jeff Davis To: Peter Geoghegan Cc: Josh Berkus , pgsql-bugs@postgresql.org In-Reply-To: References: <50D0FCC6.10905@agliodbs.com> Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 18 Dec 2012 17:42:35 -0800 Message-ID: <1355881355.24766.203.camel@sussancws0025> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQm4GcbJWjw/TwWV88od/l2Fi//gnddgUi57WZEv/f3YW9CmIUudWIcvRVEckjXKCD8UmNzy X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, 2012-12-19 at 00:06 +0000, Peter Geoghegan wrote: > On 18 December 2012 23:31, Josh Berkus 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 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