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

Add PG::TextEncoder::Bytea to BasicTypeRegistry #506

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

larskanis
Copy link
Collaborator

This encoder used to be excluded from the registry, since it's the only encoder that has a negative performance implication. However it should be there for completeness and because it's valuable for sending data per COPY command to the server.

Another issue was, that we supported PostgreSQL-8.4 to the time TextEncoder::Bytea was implemented, but the hex bytea format was introduced with PostgreSQL-9.0. Now we don't support such old versions any longer, so that the encoder can be used bar none.

This encoder used to be excluded from the registry, since it's the only encoder that has a negative performance implication.
However it should be there for completeness and because it's valueable for sending data per COPY command to the server.

Another issue was, that we supported PostgreSQL-8.4 to the time TextEncoder::Bytea was implemented, but the hex bytea format was introduced with PostgreSQL-9.0.
Now we don't support such old versions any longer, so that the encoder can be used bar none.
@larskanis larskanis merged commit c83e7fe into ged:master Mar 24, 2023
@larskanis larskanis deleted the bytea-enco-to-registry branch March 24, 2023 12:29
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.

1 participant