Re: Add numeric_trim(numeric) - Mailing list pgsql-hackers

From Dean Rasheed
Subject Re: Add numeric_trim(numeric)
Date
Msg-id CAEZATCV+paeA9iXyjv9AvNxd7fccyqRg0-4J3+hOWLUVpLUCtQ@mail.gmail.com
Whole thread Raw
In response to Re: Add numeric_trim(numeric)  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Add numeric_trim(numeric)  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Add numeric_trim(numeric)  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 6 January 2016 at 20:09, Robert Haas <robertmhaas@gmail.com> wrote:
> On Wed, Jan 6, 2016 at 10:21 AM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>> It seems like a useful function to have, but perhaps it should just be
>> called trim() rather than numeric_trim(), for consistency with the
>> names of the other numeric functions, which don't start with
>> "numeric_".
>
> That wouldn't work in this case, because we have hard-coded parser
> productions for TRIM().
>

Ah. Good point.

Pity -- I would have liked a nice short name for this, in a similar
vein to the existing numeric functions.

Regards,
Dean



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: No Issue Tracker - Say it Ain't So!
Next
From: Tom Lane
Date:
Subject: Re: No Issue Tracker - Say it Ain't So!