pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mayankagr009@gmail.com
To: pgsql-bugs@postgresql.org
Cc: mayankagr009@gmail.com
Subject: BUG #14734: locale issue while upgrading data directory from PostgreSQL 8.4 to 9.5
Date: Wed, 05 Jul 2017 05:19:40 +0000
Message-ID: <20170705051940.9036.1206@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14734
Logged by:          Mayank Agrawal
Email address:      mayankagr009@gmail.com
PostgreSQL version: 9.5.2
Operating system:   Windows
Description:        

Hello,

I am upgrading PostgreSQL 8.4 to 9.5 on Windows. There is some issue related
to locale. Details are as follows:

The steps that I am following are:

1. Install PostgreSQL 9.5 (8.4 is already installed).
2. Migrate data from 8.4's data dir to 9.5's data dir using pg_upgrade
utility.
3. After successful upgrade, uninstall PostgreSQL 8.4

Here the issue is that PostgreSQL 8.4 could be installed with any locale
(English or French etc.) and to have successful data directory upgrade,
PostgreSQL 9.5 must be installed with the same locale as that of 8.4.

Supplying the output of query 'Show lc_collate' (executed on PostgreSQL 8.4)
to PostgreSQL 9.5 installation leads to failed installation. It generates
the error 'specified locale is not supported'.

Here is the example:

Output (PostgreSQL 8.4) of query 'SHOW LC_COLLATE': English_United
States.1252

A. --locale "English_United States.1252"

While installing PostgreSQL 9.5, If we pass locale option as above,
installer aborts with an error 'specified locale is not supported'.

B. --locale "English, United States"

If we pass locale option as above, installation is successful and cluster
locale is set to 'English, United States'.

Given that one has access to PostgreSQL 8.4, how would one know what value
to pass to the parameter --locale while installing PostgreSQL 9.5?


Thanks and Regards,
Mayank Agrawal


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


Message-ID: <20170705051940.9036.1206@wrigleys.postgresql.org>
Permalink:  ../20170705051940.9036.1206@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170705051940.9036.1206@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: mayankagr009@gmail.com
  Subject: Re: BUG #14734: locale issue while upgrading data directory from PostgreSQL 8.4 to 9.5
  In-Reply-To: <20170705051940.9036.1206@wrigleys.postgresql.org>
  References: <20170705051940.9036.1206@wrigleys.postgresql.org>

* 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