Hi,
I have been following this article on how to fix my postgres database collation issue.
Create a new database as per our guidelines. Please refer to Setting up a PostgreSQL Database for JIRA if you are using Linux.
This requires you to do an xml backup and restore. Is there no other way possibly creating a new database and loading the data using native database tools such as psql ?
Regards,
Avinash
Hi,
Is it possible just to change the collation of the jira database without create a new database ? I want to say changing just the collation settings of the jirad database.
Thanks Nic. How will I know if the restoration will not change the new collation back?
Name | Owner | Encoding | Collate | Ctype | Access privileges
-------------------------+------------+----------+-------------+-------------+-----------------------
jiradb| jira| UTF8 | en_US.UTF-8 | en_US.UTF-8 |
jiraNew| jira| UTF8 | C | C |
Here is what I am doing:
- create jiraNew database with new collation
- restore a backup of jiradb to jiraNew using , psql jiraNew < backupfile
Are these collations (en_US.UTF-8 and C) very different?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can use the database tools to do this. As long as restoration of data will not change the new collation back.
However, if the collations are very different, you may find some of your data changes to match. The xml export/import is agnostic of that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic,
Can you explain what constitutes "very different" collations?
I recently discovered that our Jira Dev and Jira Test environments are using Collate: C and Ctype: C but our Production Jira environment is using Collate: en_US.UTF-8 and Ctype: en_US.UTF-8. Are these "very different"?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.