pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tatsuo Ishii <ishii@sraoss.co.jp>
Cc: parker.han@outlook.com
Cc: pgsql-general@postgresql.org
Subject: Re: 回复: May "PostgreSQL server side GB18030 character set support" reconsidered?
Date: Mon, 05 Oct 2020 20:58:42 -0400
Message-ID: <1831165.1601945922@sss.pgh.pa.us> (raw)
In-Reply-To: <20201006.090410.1264557007598736613.t-ishii@sraoss.co.jp>
References: <20201005.174109.1358847281635212616.t-ishii@sraoss.co.jp>
	<ME2PR01MB25323BFB2D3BA4AF8EC1040C8A0C0@ME2PR01MB2532.ausprd01.prod.outlook.com>
	<1720141.1601908234@sss.pgh.pa.us>
	<20201006.090410.1264557007598736613.t-ishii@sraoss.co.jp>

Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> One of ideas to avoid the concern could be "shifting" GB18030 code
> points into "ASCII safe" code range with some calculations so that
> backend can handle them without worrying about the concern above. This
> way, we could avoid a table lookup overhead which is necessary in
> conversion between GB18030 and UTF8 and so on.

Hmm ... interesting idea, basically invent our own modified version
of GB18030 (or SJIS?) for backend-internal storage.  But I'm not
sure how to make it work without enlarging the string, which'd defeat
the OP's argument.  It looks to me like the second-byte code space is
already pretty full in both encodings.

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <1831165.1601945922@sss.pgh.pa.us>
Permalink:  ../1831165.1601945922@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1831165.1601945922@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, ishii@sraoss.co.jp, parker.han@outlook.com
  Subject: Re: 回复: May "PostgreSQL server side GB18030 character set support" reconsidered?
  In-Reply-To: <1831165.1601945922@sss.pgh.pa.us>
  References: <20201005.174109.1358847281635212616.t-ishii@sraoss.co.jp> <ME2PR01MB25323BFB2D3BA4AF8EC1040C8A0C0@ME2PR01MB2532.ausprd01.prod.outlook.com> <1720141.1601908234@sss.pgh.pa.us> <20201006.090410.1264557007598736613.t-ishii@sraoss.co.jp> <1831165.1601945922@sss.pgh.pa.us>

* 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