apecloud / myduckserver

MySQL & Postgres Analytics, Reimagined
184 stars 8 forks source link

Expose PostgreSQL Wire Protocol for Direct DuckDB Queries #95

Closed fanyang01 closed 3 weeks ago

fanyang01 commented 1 month ago

Given that MyDuckServer stores data in DuckDB, users may want to query the underlying data store directly using DuckDB SQL syntax. To satisfy this need, we can expose an additional port that speaks the PostgreSQL wire protocol, as DuckDB SQL syntax is highly PG-compatible.

We can learn from the implementation of DoltgreSQL.