Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7oGy-0001gh-Bo for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Aug 2013 15:06:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V7oGx-0004dj-Mn for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Aug 2013 15:06:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7oGw-0004dc-Q9 for pgsql-bugs@postgresql.org; Fri, 09 Aug 2013 15:06:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7oGu-0004mP-3p for pgsql-bugs@postgresql.org; Fri, 09 Aug 2013 15:06:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r79F6FKr019167; Fri, 9 Aug 2013 11:06:15 -0400 From: Tom Lane To: Bruce Momjian cc: amutu@amutu.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8335: trim() un-document behaviour In-reply-to: <20130807161953.GZ11189@momjian.us> References: <20130807161953.GZ11189@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 07 Aug 2013 12:19:53 -0400" Date: Fri, 09 Aug 2013 11:06:15 -0400 Message-ID: <19166.1376060775@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Bruce Momjian writes: > The attached patch swaps the arguments in the parser, and allows your > expected behavior: This patch is completely unsafe. It will break stored rules, which may contain calls using the existing argument order (which will be dumped without any of the SQL-spec syntactic sugar). To say nothing of existing applications that may be relying on calling the underlying functions with their existing argument order. The inconsistency in argument order is unfortunate but we're long since stuck with it, I'm afraid. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs