pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: amutu@amutu.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8335: trim() un-document behaviour
Date: Fri, 09 Aug 2013 11:06:15 -0400
Message-ID: <19166.1376060775@sss.pgh.pa.us> (raw)
In-Reply-To: <20130807161953.GZ11189@momjian.us>
References: <E1V2XgU-0003tb-Ii@wrigleys.postgresql.org>
	<20130807161953.GZ11189@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Bruce Momjian <bruce@momjian.us> 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



view thread (16+ messages)  latest in thread

Message-ID: <19166.1376060775@sss.pgh.pa.us>
Permalink:  ../19166.1376060775@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19166.1376060775@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, bruce@momjian.us, amutu@amutu.com
  Subject: Re: BUG #8335: trim() un-document behaviour
  In-Reply-To: <19166.1376060775@sss.pgh.pa.us>
  References: <E1V2XgU-0003tb-Ii@wrigleys.postgresql.org> <20130807161953.GZ11189@momjian.us> <19166.1376060775@sss.pgh.pa.us>

* 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