pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14285: Chinese locale and windows
3+ messages / 2 participants
[nested] [flat]

* BUG #14285: Chinese locale and windows
@ 2016-08-09 14:23  nicolas.david@verosoftware.com
  0 siblings, 2 replies; 3+ messages in thread

From: nicolas.david@verosoftware.com @ 2016-08-09 14:23 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14285
Logged by:          Nicolas David
Email address:      nicolas.david@verosoftware.com
PostgreSQL version: 9.2.5
Operating system:   Windows 10
Description:        

Dear All,

we have a chinese customer that have migrated from Win7 to Win10. It seems
that the locale 'Chinese (Simplified)_People’s Republic of China.936' has
been renamed to 'Chinese (Simplified)_China.936'.

For this reason, the postgresql service could not start (invalid value for
parameters lc_monetary / lc_numeric / lc_time in postgresql.conf).

I changed the value in the postgresql.conf file to use the new locale. 

After that the service starts but I cannot get connected to my database. I
get an error message that tell me that LC_COLLATE is 'Chinese
(Simplified)_People’s Republic of China.936'. A HINT explains that I should
re-install the database or add the locale. 

How can I manage this situation ?

Because if I re-install, the customer data will be lost and I don't know how
to add this locale.

Thank you for your help.

Best regards
            
               




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #14285: Chinese locale and windows
@ 2016-08-09 15:31  Rader, David <davidr@openscg.com>
  parent: nicolas.david@verosoftware.com
  1 sibling, 0 replies; 3+ messages in thread

From: Rader, David @ 2016-08-09 15:31 UTC (permalink / raw)
  To: nicolas.david@verosoftware.com; +Cc: pgsql-bugs

--
David Rader
davidr@openscg.com

On Tue, Aug 9, 2016 at 10:23 AM, <nicolas.david@verosoftware.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14285
> Logged by:          Nicolas David
> Email address:      nicolas.david@verosoftware.com
> PostgreSQL version: 9.2.5
> Operating system:   Windows 10
> Description:
>
> Dear All,
>
> we have a chinese customer that have migrated from Win7 to Win10. It seems
> that the locale 'Chinese (Simplified)_People’s Republic of China.936' has
> been renamed to 'Chinese (Simplified)_China.936'.
>
> For this reason, the postgresql service could not start (invalid value for
> parameters lc_monetary / lc_numeric / lc_time in postgresql.conf).
>
> I changed the value in the postgresql.conf file to use the new locale.
>
> After that the service starts but I cannot get connected to my database. I
> get an error message that tell me that LC_COLLATE is 'Chinese
> (Simplified)_People’s Republic of China.936'. A HINT explains that I should
> re-install the database or add the locale.
>
> How can I manage this situation ?
>
> Because if I re-install, the customer data will be lost and I don't know
> how
> to add this locale.
>
> Thank you for your help.
>
> Best regards
>
>
>
>
This is not a bug, will move to the general mail list.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [BUGS] BUG #14285: Chinese locale and windows
@ 2016-08-09 15:34  Rader, David <davidr@openscg.com>
  parent: nicolas.david@verosoftware.com
  1 sibling, 0 replies; 3+ messages in thread

From: Rader, David @ 2016-08-09 15:34 UTC (permalink / raw)
  To: nicolas.david@verosoftware.com, pgsql-general <pgsql-general@postgresql.org>

--
David Rader
davidr@openscg.com

On Tue, Aug 9, 2016 at 10:23 AM, <nicolas.david@verosoftware.com> wrote:


> Logged by:          Nicolas David
> Email address:      nicolas.david@verosoftware.com
> PostgreSQL version: 9.2.5
> Operating system:   Windows 10
> Description:
>
> Dear All,
>
> we have a chinese customer that have migrated from Win7 to Win10. It seems
> that the locale 'Chinese (Simplified)_People’s Republic of China.936' has
> been renamed to 'Chinese (Simplified)_China.936'.
>
> For this reason, the postgresql service could not start (invalid value for
> parameters lc_monetary / lc_numeric / lc_time in postgresql.conf).
>
> I changed the value in the postgresql.conf file to use the new locale.
>
> After that the service starts but I cannot get connected to my database. I
> get an error message that tell me that LC_COLLATE is 'Chinese
> (Simplified)_People’s Republic of China.936'. A HINT explains that I should
> re-install the database or add the locale.
>
> How can I manage this situation ?
>
> Because if I re-install, the customer data will be lost and I don't know
> how
> to add this locale.
>
> Thank you for your help.
>
> Best regards
>
>
>
The locale has to be set when the database is created. Normally you can use
pg_dump to export all the data, create a new database with the correct
locale settings, and then pg_restore in to the new database.

Did the customer upgrade their Win7 machine to Win10 or move to a new
machine with Win10 - and do you or they still have access to the older Win7
environment?

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2016-08-09 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-09 14:23 BUG #14285: Chinese locale and windows nicolas.david@verosoftware.com
2016-08-09 15:31 ` Rader, David <davidr@openscg.com>
2016-08-09 15:34 ` Rader, David <davidr@openscg.com>

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