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 CAJ7c6TO6D9wBYd50HXO2XvGzeRWoBR32Uu7MEz_G2+suHmtGkQ@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 Michael,

> On Tue, Oct 29, 2024 at 03:23:15PM +0300, Aleksander Alekseev wrote:
> >> While unfortunately named, we cannot deprecate TRIM_ARRAY() because it
> >> is mandated by the standard.
> >
> > I didn't know that, thanks.
>
> Wow.  Neither did I.
>
> > 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.
>
> I suspect that it is not the only function in this case, and that we
> don't document that it is in the standard.  I would suggest to let
> things the way they are on HEAD and withdraw the patch.

Thanks for your feedback. The patch is withdrawn.

-- 
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Matthias van de Meent
Date:
Subject: Re: protocol-level wait-for-LSN
Next
From: Amit Kapila
Date:
Subject: Re: Pgoutput not capturing the generated columns