-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collation mapping #21
Comments
I think we have three problems with collation and only one to solve:
The first case is not to be covered by pgcopydb, which does not rely on physical copy of the data. Then case 2. and 3. are almost the same in our context. In case 3 we could think about using CREATE COLLATION and provide a collation with the name that was used in the source database instance to make a collation of the same name and properties available on the target instance, but we might have a different implementation of the ordering rules, so user visible changes. I do not believe there is a way around that problem, we might need to accept it. Other than using CREATE COLLATION with the same properties as on the source database instance, which pg_dump and pg_restore might already do in the case of user defined collations, remaining cases are collations that ship with Postgres core in source and not in target. I need to explore that situation, in what contexts would that be possible? Are collations created at initdb time, or part of the hard-coded catalogs? Finally I need to add that SQL queries can also include a COLLATE clause, which means the application code could depend on collations in a way that isn't visible at all from the database itself. |
Closing this issue, as we have implemented |
Ability to map collations on the source to a different collation on the destination.
Not sure of exact requirements here, needs investigation/discussion.
The text was updated successfully, but these errors were encountered: