Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ol3Iu-00063u-1d for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 07:15:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ol3Is-0000wW-Er for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 07:15:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ol3Ir-0000wM-Qr for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 07:15:49 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ol3Ik-00034D-Q2 for pgsql-general@postgresql.org; Wed, 19 Oct 2022 07:15:48 +0000 Received: by mail-wr1-x430.google.com with SMTP id w18so27553053wro.7 for ; Wed, 19 Oct 2022 00:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ih4tbup3eGKKA7RI4TalC6MNmC/iHYN/ISfMCZJz/8M=; b=gvYVBx9ulss8V8m+qhDk13w4kZjw60xoxdwx+F2NyuiOvN1HuEjpq/1hYpT5rmPhUa QJEK4Q+QtS51lITFMVNAf2IuNpGM0y8BfeYuGY/aJffF0UDXMyZCEgMMGl4VLt/mBX8r ryH8SkCgwsb5Jyws5+PShko7IYMeB0BpvD+8e4KZEw/YPc9w2dI1+Tp6voZekTH1nGm6 R8fZY8oyBTnntujyNP9xFodEpHuJFcVPnvjRIm1fMXs2KmiUmjlJs4T4RCuVNR0Twi7L k6T32BGa9Ie2oNz9KCEHopKOvBPrj82vUMLfc9T4sPPxCOd0VjWJ16CUTHWs+D+FxK3b hENg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ih4tbup3eGKKA7RI4TalC6MNmC/iHYN/ISfMCZJz/8M=; b=6KB6amZz+QmlK/Yx9akKNG60XoHTmDzzJJuj3GR0bSFgBhhkpBl4e+LIFH6ncNnU9m eNQdIXRkA3t0BIr0fNp8tqC7ylZ/lMjeDz6uP4JTYm7zyGraxf3maP9GcsyICFA8FO1w nOt3kk8aPT6cn2NpdlnOmM4DinBPgRLCXP+QTm3Z6HnLIAg7Dcevi56T+D+XPqcvSUoY 4HGKDu2SXv02xItWziMMNrRIGsJC2n3/mKPJeOxa5K57TuDTATpQx6bvW3mIMZ0umwnh Sfr2HE1PtxfPFCM5e8eiD1EtECAv5tTGgMYkk0+MwKhGvpo2MqdAsmRoD5GKDtiGnqrI mP5w== X-Gm-Message-State: ACrzQf1JI1v1wB0NgeSaiwqjXrS8nKeqqAeKKcTQCNw81UnWczxx3kLW NGYjDHiEONba02Hbmx4lzuHyjA== X-Google-Smtp-Source: AMsMyM5UZgDn91m83kqCtP42J4WoK7OjXaic2h7i2knjnGjJ3U337kOmC+nPKBtmsirqYi2eSnGQJQ== X-Received: by 2002:a5d:4950:0:b0:230:cc5a:f6b0 with SMTP id r16-20020a5d4950000000b00230cc5af6b0mr4047282wrs.656.1666163740330; Wed, 19 Oct 2022 00:15:40 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:6bcf:6bc6:867b:e3cb:a53e]) by smtp.gmail.com with ESMTPSA id u7-20020adfed47000000b002286670bafasm13384263wro.48.2022.10.19.00.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 00:15:39 -0700 (PDT) Message-ID: <8bd63f844a2319a0199f09cfb424a7089587e264.camel@cybertec.at> Subject: Re: Is this error expected ? From: Laurenz Albe To: Yavuz =?UTF-8?Q?TANRIVERD=C4=B0?= , pgsql-general@postgresql.org Date: Wed, 19 Oct 2022 09:15:39 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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/pgsql/CPgsqlSchema.php#L233 > 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