Skip to content

Conversation

JelteF
Copy link
Collaborator

@JelteF JelteF commented Apr 15, 2025

DuckDB only supports UTF8 and our string conversion between Postgres and
DuckDB strings doesn't handle converting encodings, probably resulting
into crashes if you try to use pg_duckdb with a Postgres in a non-UTF8
encoding. Given that databases with non-UTF8 encodings are very rare
these days (only really ancient databases) it seems fine to not support
them at all. So this starts throwing an error.

Fixes #238

DuckDB only supports UTF8 and our string conversion between Postgres and
DuckDB strings doesn't handle converting encodings, probably resulting
into crashes if you try to use pg_duckdb with a Postgres in a non-UTF8
encoding. Given that databases with non-UTF8 encodings are very rare
these days (only really ancient databases) it seems fine to not support
them at all. So this starts throwing an error.
@JelteF JelteF requested a review from Y-- April 15, 2025 10:59
@JelteF JelteF merged commit b6b1693 into main Apr 15, 2025
6 checks passed
@JelteF JelteF deleted the non-utf8-error branch April 15, 2025 15: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.

Only support Postgres instances that use UTF8 encoding
2 participants