pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedwhether I can add a new encoding?
3+ messages / 3 participants
[nested] [flat]
* whether I can add a new encoding?
@ 2023-09-21 09:55 Pandora <yeyukui@qq.com>
2023-09-21 11:50 ` Re: whether I can add a new encoding? Tatsuo Ishii <ishii@sraoss.co.jp>
2023-09-21 15:29 ` Re: whether I can add a new encoding? Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 3+ messages in thread
From: Pandora @ 2023-09-21 09:55 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
The pg_wchar.h file comments "We must avoid renumbering any backend encoding until libpq's major version number is increased beyond 5", Can I add a new server-side encoding, GBK18030, and place it after PG_KOI8U in PG10.6?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: whether I can add a new encoding?
2023-09-21 09:55 whether I can add a new encoding? Pandora <yeyukui@qq.com>
@ 2023-09-21 11:50 ` Tatsuo Ishii <ishii@sraoss.co.jp>
1 sibling, 0 replies; 3+ messages in thread
From: Tatsuo Ishii @ 2023-09-21 11:50 UTC (permalink / raw)
To: yeyukui@qq.com; +Cc: pgsql-general@lists.postgresql.org
> The pg_wchar.h file comments "We must avoid renumbering any backend encoding until libpq's major version number is increased beyond 5", Can I add a new server-side encoding, GBK18030, and place it after PG_KOI8U in PG10.6?
What's GBK18030? Can you please give a pointer to a specification of
GBK18030?
Best reagards,
--
Tatsuo Ishii
SRA OSS LLC
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: whether I can add a new encoding?
2023-09-21 09:55 whether I can add a new encoding? Pandora <yeyukui@qq.com>
@ 2023-09-21 15:29 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2023-09-21 15:29 UTC (permalink / raw)
To: Pandora <yeyukui@qq.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
"=?ISO-8859-1?B?UGFuZG9yYQ==?=" <yeyukui@qq.com> writes:
> The pg_wchar.h file comments "We must avoid renumbering any backend encoding until libpq's major version number is increased beyond 5", Can I add a new server-side encoding, GBK18030, and place it after PG_KOI8U in PG10.6?
What is GBK18030? If it's related to either GBK or GB18030,
then it'd be unsafe to use as a server encoding because it's not a
strict ASCII superset (that is, it has multibyte characters in
which not all bytes have the high bit set). The lack of room for
a new server encoding in the pg_enc enum has seemed like a mostly
hypothetical problem because of that restriction.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2023-09-21 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21 09:55 whether I can add a new encoding? Pandora <yeyukui@qq.com>
2023-09-21 11:50 ` Tatsuo Ishii <ishii@sraoss.co.jp>
2023-09-21 15:29 ` Tom Lane <tgl@sss.pgh.pa.us>
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