Re: So, about that cast-to-typmod-minus-one business

Zhihong Yu <zyu@yugabyte.com>

From: Zhihong Yu <zyu@yugabyte.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-09-18T17:59:38Z
Lists: pgsql-hackers
On Sat, Sep 18, 2021 at 10:06 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:

> We had left it as an open issue whether or not to risk back-patching
> 5c056b0c2 into stable branches [1].  While updating the v14 release notes,
> I realized that we can't put off that decision any longer, because we
> have to decide now whether to document that as a new behavior in v14.
>
> I'm inclined to back-patch, since nobody has complained about this
> in 14beta3.  Thoughts?
>
>                         regards, tom lane
>
> [1]
> https://www.postgresql.org/message-id/flat/CABNQVagu3bZGqiTjb31a8D5Od3fUMs7Oh3gmZMQZVHZ%3DuWWWfQ%40mail.gmail.com
>
>
> Hi,
+1 to backporting.

Thanks

Commits

  1. Don't elide casting to typmod -1.