pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Q: error on updating collation version information
Date: Mon, 5 Dec 2022 01:54:37 +0100
Message-ID: <Y41BTTk0J7oYpJYS@hermes.hilbert.loc> (raw)
In-Reply-To: <Y40eV+v0A++c78Uo@hermes.hilbert.loc>
References: <Y4yQ6pJuuCQ1w1xI@hermes.hilbert.loc>
	<Y4yUCqaXM5IOiyLM@hermes.hilbert.loc>
	<954702a5-3552-640e-6df9-a03ab5fbc339@aklaver.com>
	<Y40eV+v0A++c78Uo@hermes.hilbert.loc>

Is this to be expected ?

PG 15.1 on Debian:

	gnumed_v22=# select *, pg_collation_actual_version(oid), pg_encoding_to_char(collencoding) from pg_collation where collname = 'zh_TW';
	-[ RECORD 1 ]---------------+------------
	oid                         | 12985
	collname                    | zh_TW
	collnamespace               | 11
	collowner                   | 10
	collprovider                | c
	collisdeterministic         | t
	collencoding                | 4
	collcollate                 | zh_TW.euctw
	collctype                   | zh_TW.euctw
	colliculocale               |
	collversion                 | 2.35
	pg_collation_actual_version | 2.36
	pg_encoding_to_char         | EUC_TW
	-[ RECORD 2 ]---------------+------------
	oid                         | 12986
	collname                    | zh_TW
	collnamespace               | 11
	collowner                   | 10
	collprovider                | c
	collisdeterministic         | t
	collencoding                | 6
	collcollate                 | zh_TW.utf8
	collctype                   | zh_TW.utf8
	colliculocale               |
	collversion                 | 2.36
	pg_collation_actual_version | 2.36
	pg_encoding_to_char         | UTF8

	gnumed_v22=# begin;
	BEGIN
	gnumed_v22=*# alter collation pg_catalog."zh_TW" refresh version ;
	NOTICE:  version has not changed
	ALTER COLLATION
	gnumed_v22=*# alter collation pg_catalog."zh_TW.utf8" refresh version ;
	NOTICE:  version has not changed
	ALTER COLLATION
	gnumed_v22=*# alter collation pg_catalog."zh_TW.euctw" refresh version ;
	ERROR:  collation "pg_catalog.zh_TW.euctw" for encoding "UTF8" does not exist
	gnumed_v22=!#

As far as I can tell the documentation asserts that since the
database encoding is UTF8 the pg_catalog."zh_TW.euctw" will
be ignored by the server for all practical purposes.

Does this mean it is impossible to "correct" its version
information ?

And if so, that is expected to be non-harmful and is not
expected to trigger nag messages ?

Thanks,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (7+ messages)  latest in thread

Message-ID: <Y41BTTk0J7oYpJYS@hermes.hilbert.loc>
Permalink:  ../Y41BTTk0J7oYpJYS@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/Y41BTTk0J7oYpJYS@hermes.hilbert.loc

 · 

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: Karsten.Hilbert@gmx.net, adrian.klaver@aklaver.com
  Subject: Re: Q: error on updating collation version information
  In-Reply-To: <Y41BTTk0J7oYpJYS@hermes.hilbert.loc>
  References: <Y4yQ6pJuuCQ1w1xI@hermes.hilbert.loc> <Y4yUCqaXM5IOiyLM@hermes.hilbert.loc> <954702a5-3552-640e-6df9-a03ab5fbc339@aklaver.com> <Y40eV+v0A++c78Uo@hermes.hilbert.loc> <Y41BTTk0J7oYpJYS@hermes.hilbert.loc>

* 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