Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w84OL-000BNt-2L for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 22:50:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w84OK-002c9U-1D for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 22:50:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w84OJ-002c9M-31 for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 22:50:28 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w84OG-000000005Nr-3Tkf for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 22:50:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:Cc:To:Message-Id:Date:Sender :Reply-To:Content-ID:Content-Description; bh=DlpbXwStIe2MQ9vPFBiQVVoPNh1UgrwGj7TfxeiAn6I=; b=ybEl7LXIRSreMXz7/wDcLN+b2M uG+t9JYBBa9ROeAbvDBYzMfa/CxTfMtieTTdQ+UPwqosQ5BZznkKHmtM/I4hVkJUMA0wx0+Pietn5 hG1bDuRTEol/LFzfRCDuzzK30riQkfG2fhKOQ+nr/JvzrVvenlvIJlgqE1YEYgf83WD8bDkv1wvHL Tn9gtWg6elJmCYa+u3blG648EyaxEpLEHPzx9A2RF/t4IV74hDCa8aGStVKvDDV1i+/dODYMiUMmn 9dyEq4VwkIqyNOHo04sSViSFcVYmnAz2WdL02KJLvaURO5sIgNOudqw/40eW7o/TaJN04I+7trIed PtpuaF1g==; Received: from [2409:11:4120:300:753b:efb0:73a9:b9d0] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w84OB-000Br3-0q; Wed, 01 Apr 2026 22:50:21 +0000 Date: Thu, 02 Apr 2026 07:50:06 +0900 (JST) Message-Id: <20260402.075006.1215979483410908859.ishii@postgresql.org> To: pgsql@j-davis.com Cc: thomas.munro@gmail.com, pgsql-hackers@lists.postgresql.org, tgl@sss.pgh.pa.us Subject: Re: Do we still need MULE_INTERNAL? From: Tatsuo Ishii In-Reply-To: <790a2e194c2d8cb03a2f1b8b580b64f25a5095b0.camel@j-davis.com> References: <20260401.083826.1947227822512469454.ishii@postgresql.org> <790a2e194c2d8cb03a2f1b8b580b64f25a5095b0.camel@j-davis.com> X-Mailer: Mew version 6.8 on Emacs 29.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:753b:efb0:73a9:b9d0 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Repro of my case: > > cd pgsql18dbg > ./bin/initdb -D data -N -E MULE_INTERNAL --locale=C > ./bin/pg_ctl -D data -l logfile start > PGCLIENTENCODING=SQL_ASCII ./bin/psql postgres \ > -c 'create table x(t text);' > ./bin/pg_ctl -D data stop > cd ../pgsql19dbg > ./bin/initdb -D data -N -E SQL_ASCII --locale=C > ./bin/pg_upgrade -b ../pgsql18dbg/bin -B bin \ > -d ../pgsql18dbg/data -D data Oh, initdb with encoding MULE_INTERNAL. I see cause of the error now. > =========================== > ... > Performing Upgrade > ------------------ > ... > Setting frozenxid and minmxid counters in new cluster > connection to server on socket ".../pgsql19dbg/.s.PGSQL.50432" failed: > FATAL: invalid database encoding: 7 > > Failure, exiting > =========================== > > It's easy to fix by just rejecting MULE_INTERNAL during the "check" > phase. Agreed. Regards, -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp