Re: [PATCH] Rename trim_array() for consistency with the rest of array_* functions - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: [PATCH] Rename trim_array() for consistency with the rest of array_* functions
Date
Msg-id CAJ7c6TNiWTTj7yXAwu0Jwtv21i9JMsyijp4LAkafzVbix+jGwg@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Rename trim_array() for consistency with the rest of array_* functions  (Vik Fearing <vik@postgresfriends.org>)
List pgsql-hackers
Hi Vik,

> While unfortunately named, we cannot deprecate TRIM_ARRAY() because it
> is mandated by the standard.

I didn't know that, thanks.

Still PostgreSQL doesn't follow the standard precisely in more than
one respect. Perhaps we should add array_trim() and keep both? Or
(less likely) remove trim_array() and document this deviation from the
standard? Or at least document why it's named this way.

What do you think?

-- 
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Nikita Malakhov
Date:
Subject: Re: detoast datum into the given buffer as a optimization.
Next
From: David Rowley
Date:
Subject: Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)