Re: Do we still need MULE_INTERNAL?

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql(at)j-davis(dot)com
Cc: thomas(dot)munro(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us
Subject: Re: Do we still need MULE_INTERNAL?
Date: 2026-03-31 23:38:26
Message-ID: 20260401.083826.1947227822512469454.ishii@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Thomas,

Sorry for late reply.

>> Thanks Ishii-san and Tom.  Here's a patch.  Obviously it mostly just
>> deletes thousands of lines, but also: I had to preserve the encoding
>> number, so there's a hole in the table, 
>
> pg_upgrade fails:
>
> Performing Upgrade
> ------------------
> ...
> Setting frozenxid and minmxid counters in new cluster
> connection to server on socket "/.../.s.PGSQL.50432" failed: FATAL:
> invalid database encoding: 7
>
> You should have an explicit check.

In my case pg_upgrade does not fail.

Old clsuter:
- create pg18 cluster with SQL_ASCII encoding
- create MULE_INTERNAL encoding database
- drop the MULE_INTERNAL database

New cluster:
- create pg19dev cluster with SQL_ASCII encoding

Run pg_upgrade

> Other than that, it looks good to me.
>
>> and I had to think of a new
>> name for cyrillic_and_mic.c, so I went with cyrillic.c because it
>> handles 4 single-byte encodings and it wasn't clear how to fit into
>> the existing x_and_y pattern (ie which two to highlight arbitrarily
>> in
>> the name).
>
> Seems fine.

Looks good to me as well.

Regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2026-03-31 23:50:19 Re: [oauth] Split and extend PGOAUTHDEBUG
Previous Message Zsolt Parragi 2026-03-31 23:30:32 Re: pg_get__*_ddl consolidation