Re: BUG #8335: trim() un-document behaviour - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #8335: trim() un-document behaviour
Date
Msg-id 19166.1376060775@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #8335: trim() un-document behaviour  (Bruce Momjian <bruce@momjian.us>)
Responses Re: BUG #8335: trim() un-document behaviour
List pgsql-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

pgsql-bugs by date:

Previous
From: Romain Billon-Grand
Date:
Subject: Re: BUG #8335: trim() un-document behaviour
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #8335: trim() un-document behaviour