QuestDB into Apache Arrow through ADBC: native PostgreSQL ADBC driver vs the ODBC route, measured

QuestDB speaks the PostgreSQL wire protocol, so there are two ways to get its results into Arrow record batches through ADBC (Arrow Database Connectivity): the Apache Arrow project’s native PostgreSQL ADBC driver, or adbcBridge, an ADBC driver that wraps an ODBC driver, here psqlodbc. On 2026-09-05 I ran one seven-step workload through both against QuestDB 10: connect, SELECT 1, an eight-column CREATE TABLE plus two INSERTs and a read, a 1,000-row bulk ingest, table schema, catalog listing, and a read of the ingested table.

Native PostgreSQL ADBC driver 1.12.0: stops at connect. Its type-resolver bootstrap, “SELECT oid, typname, typreceive, typbasetype, typrelid, typarray FROM pg_catalog.pg_type WHERE (typreceive != 0 OR typsend != 0) …”, is rejected, so no connection is established. That is the driver assuming a full pg_catalog rather than anything wrong on QuestDB’s side.
adbcBridge over psqlodbc: all seven steps pass (with BoolsAsChar=0 and Protocol=7.4-0 on the psqlodbc side, and a moment for QuestDB’s commit before the count check).

Verified matrix entry with the exact settings, and the full native-vs-ODBC table for all 28 PostgreSQL-wire and MySQL-wire databases with each first error: Where the native PostgreSQL and MySQL ADBC drivers stop on wire-compatible databases — adbcBridge notes
Project : GitHub - singhpratech/adbcbridge: Any ODBC driver as an Apache Arrow ADBC driver. One C library, 53 databases verified on Linux, 45 on macOS, 48 on Windows, five languages. · GitHub
Website: https://adbcbridge.org/

Thanks, but since QuestDB 10.0 the preferred way to query data is via the QWP protocol, with pgwire still available for compatibility. The latest QuestDB clients (For C/C++, Rust, Python, and Ruby) support Arrow natively, although not ADBC.

If there is ADBC support for QuestDB, which we are already considering, it should be via the QWP protocol, rather than via pgwire

Thanks, that is a clear answer, and it is the one I was hoping for. So I built it.

adbcBridge now ships a second driver, adbc_driver_questdb, that speaks QWP directly through your C client (c-questdb-client 7.2.0): an ADBC 1.1.0 driver whose query results are the client’s own Arrow batches passed straight through, and whose bulk ingest goes out through qwp_sender_flush_arrow_batch_*. No pgwire anywhere in the path. Merged today, with tests and docs: QuestDB over QWP: adbc_driver_questdb, a native driver on c-questdb-client by singhpratech · Pull Request #166 · singhpratech/adbcbridge · GitHub and adbcbridge/docs/getting-started/questdb-qwp.md at main · singhpratech/adbcbridge · GitHub

Same workload as the post above, now a third row, measured today against QuestDB 10.1.0 on the same machine:

  • QWP driver: 2,000,000 rows of long_sequence with five typed columns into a pyarrow Table in 0.125 s (about 16M rows/s); a 500,000-row adbc_ingest in 0.084 s including the wait for the WAL to be applied, so the count() that follows sees them.
  • ODBC route (psqlodbc over pgwire): the same read in 1.47 s, about 12x slower.
  • Native PostgreSQL ADBC driver: still fails at connect, as before.

What it covers: basic auth or token, TLS, $1 bind parameters (one execution per bound row, so executemany works), ExecuteUpdate row counts, the four ADBC ingest modes (the driver issues CREATE TABLE from the Arrow schema so names and types are the caller’s, picks the designated timestamp, and polls wal_tables() until applied), GetObjects / GetTableSchema from tables() and table_columns(), typed exactly as the client types results. No transactions, by design.

Two small things I met in the client’s Arrow egress on the way, in case they are useful: a DECIMAL column with precision 9 or less is refused (QWP egress: unsupported column type DECIMAL(8,2)) while 18-, 38- and 76-digit ones decode, and an all-NULL DOUBLE[][] column comes out as a one-level list. I will bring both to c-questdb-client as a PR rather than an issue, if that suits.

If an ADBC driver over QWP is something QuestDB would want to point at or take over, it is Apache-2.0 and built to be lifted out: one C file over your client’s public API.