Skip to content
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

Fix default collation deserialization #444

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Conversation

JLockerman
Copy link
Contributor

@JLockerman JLockerman commented Jun 7, 2022

We've run into an issue where the database default collation doesn't necessarily exist as a "real" collation in pg_collation. This code specializes the deserialization code to handle this: if we don't find the collation we're trying to deserialize, check if the name matches that of the default collation and if so assume it's the default collation.

fixes #443

@JLockerman JLockerman force-pushed the jl/collation-serialization-fix branch from f57b563 to 76ade21 Compare June 7, 2022 17:43
@JLockerman JLockerman changed the title [WIP] Fix default collation deserialization Fix default collation deserialization Jun 7, 2022
@JLockerman JLockerman force-pushed the jl/collation-serialization-fix branch 2 times, most recently from 5d9c14e to 0650e50 Compare June 14, 2022 17:36
@JLockerman JLockerman force-pushed the jl/collation-serialization-fix branch from 0650e50 to 8a4ec73 Compare June 22, 2022 16:25
We've run into an issue where the database default collation doesn't
necessarily exist as a "real" collation in pg_collation. This code
specializes the deserialization code to handle this: if we don't find
the collation we're trying to deserialize, check if the name matches
that of the default collation and if so assume it's the default
collation.
@JLockerman JLockerman force-pushed the jl/collation-serialization-fix branch from 8a4ec73 to 6a2f598 Compare June 22, 2022 16:46
@JLockerman
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 22, 2022

@bors bors bot merged commit 01590d8 into main Jun 22, 2022
@bors bors bot deleted the jl/collation-serialization-fix branch June 22, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toolkit hyperloglog error : deserialization error invalid collation "pg_catalog"."en_US.UTF-8"
2 participants