From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Yavuz TANRIVERDİ <sternix@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Is this error expected ?
Date: Wed, 19 Oct 2022 09:15:39 +0200
Message-ID: <8bd63f844a2319a0199f09cfb424a7089587e264.camel@cybertec.at> (raw)
In-Reply-To: <CAH-+qaYG=v0ts62XJqAjDJthJcvtc_EdMYv4Eh0ZnX3TM7Zm5A@mail.gmail.com>
References: <CAH-+qaYG=v0ts62XJqAjDJthJcvtc_EdMYv4Eh0ZnX3TM7Zm5A@mail.gmail.com>
On Wed, 2022-10-19 at 09:50 +0300, Yavuz TANRIVERDİ wrote:
> i have an
> "ERROR: UNION types "char" and text cannot be matched CASE WHEN indisprimary THEN"
> error from
> https://github.com/yiisoft/yii/blob/e7c298343bf1f76186d443b62ff853d2d36e19f0/framework/db/schema/pgs...
> I read release notes, but can't find any related change,
> It works for PostgreSQL 14.5 but fails with PostgreSQL 15.0, a test sample below.
> Is this error expected ?
Yes, it is. See this paragraph from the release notes
(https://www.postgresql.org/docs/current/release-15.html#id-1.11.6.5.5.13):
- Create a new pg_type.typcategory value for "char" (Tom Lane)
Some other internal-use-only types have also been assigned to this category.
Perhaps that should have been listed as a potential compatibility break, but
the documentation explicity says that "char" is not intended for use by the
end user (https://www.postgresql.org/docs/current/datatype-character.html):
> These are not intended for general-purpose use, only for use in the internal system catalogs.
You will have to add an explicit type cast.
Yours,
Laurenz Albe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, sternix@gmail.com
Subject: Re: Is this error expected ?
In-Reply-To: <8bd63f844a2319a0199f09cfb424a7089587e264.camel@cybertec.at>
References: <CAH-+qaYG=v0ts62XJqAjDJthJcvtc_EdMYv4Eh0ZnX3TM7Zm5A@mail.gmail.com> <8bd63f844a2319a0199f09cfb424a7089587e264.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox