Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Cdi-0008ES-Rm for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Dec 2015 07:24:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a6Cdi-0005ke-CH for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Dec 2015 07:24:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a6Cdh-0005kX-RE for pgsql-bugs@postgresql.org; Tue, 08 Dec 2015 07:24:45 +0000 Received: from c.mail.sonic.net ([64.142.111.80]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a6Cde-00055x-QT for pgsql-bugs@postgresql.org; Tue, 08 Dec 2015 07:24:44 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id tB87Oc8Y006388 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT); Mon, 7 Dec 2015 23:24:39 -0800 Date: Mon, 7 Dec 2015 23:24:48 -0800 From: David Gould To: Tom Lane Cc: amutu@amutu.com, pgsql-bugs@postgresql.org Subject: Re: BUG #13805: plpgsql execute using expression evaluate wrong Message-ID: <20151207232448.58fa8420@engels> In-Reply-To: <14234.1449556599@sss.pgh.pa.us> References: <20151208035444.5253.30717@wrigleys.postgresql.org> <20151207220847.4da716e1@engels> <14234.1449556599@sss.pgh.pa.us> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVaaQwPZTqFTKR81kI9gUatZcC2c9cJZ32MJXvtD1oA2Zgkw75WflEy48mp168tfsidBxUnL7lWUAxhKWEkyirME X-Sonic-ID: C;Er9+vXyd5RGgsP8vZz0oYQ== M;3vXBvXyd5RGgsP8vZz0oYQ== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd 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 Tue, 08 Dec 2015 01:36:39 -0500 Tom Lane wrote: > The datetime input parser tends to consider most non-alphanumeric > characters as being insignificant except as field separators. We could > tighten that up, but I think we should tread pretty carefully for fear of > breaking cases that used to work. A trivial example: ... > regression=# select '1 mon$ 1 day'::interval; > interval > ------------- > 1 mon 1 day > (1 row) > > Trying to decide which characters are legitimate noise and which > aren't seems like a tarbaby best not to get stuck to :-( # select '#!1!#month,?=~&(12$[day*() '::interval; interval --------------- 1 mon 12 days (1 row) I feel so ... dirty.... -dg -- David Gould 510 282 0869 daveg@sonic.net If simplicity worked, the world would be overrun with insects. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs