Supabase
catalog.schema.tableSupabase runs PostgreSQL, so the catalog is an ordinary PostgreSQL catalog: the schema is the middle part, and everything in PostgreSQL & MySQL applies. What differs is which host you connect to. Picking Supabase in the console opens the PostgreSQL form with those details filled in.
What you need
| Field | Value |
|---|---|
| Host | The session pooler host, aws-0-<region>.pooler.supabase.com |
| Port | 5432 (session mode, not 6543) |
| Database | postgres, unless you created another database |
| User | postgres.<project-ref>, or <role>.<project-ref> for another role |
| Password | The database password, not a Supabase API key |
| SSL mode | require — Supabase requires TLS |
| Schema | Optional. public is the usual one; limit metadata collection on large projects |
Project Settings → Database → Connection string shows both forms. Take the one labelled Session pooler, not the direct connection.
Why the pooler, not the direct host
The direct host, db.<project-ref>.supabase.co, resolves to IPv6 only unless
the project has the paid IPv4 add-on. Thunderduck connects over IPv4, so the
direct host fails with Network is unreachable or a timeout even though the
project is healthy.
The session pooler is reachable over IPv4 and keeps the connection semantics
DuckDB needs. The transaction pooler on port 6543 is not a substitute: it does
not support cursors or prepared statements, so catalog refreshes and queries
fail with errors such as prepared statement "s1" does not exist.
If your project does have the IPv4 add-on, the direct host works too — use it with the ordinary PostgreSQL connector. The pooler is the safer default.
Username and password
The pooler tenant is part of the username:
- the default role is
postgres.<project-ref>, for examplepostgres.abcdefghijklmnop; - any other role follows the same shape,
<role>.<project-ref>.
The password is the database password from Project Settings → Database. A
Supabase API key (anon, service_role) is not a database credential and will
fail authentication.
A read-only role
For anything shared, create a role with read access to the schemas you want to expose. In the Supabase SQL editor:
CREATE ROLE thunderduck_ro LOGIN PASSWORD '…';
GRANT USAGE ON SCHEMA public TO thunderduck_ro;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO thunderduck_ro;
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT SELECT ON TABLES TO thunderduck_ro;Then use thunderduck_ro.<project-ref> as the user. A role scoped this way also
keeps other schemas out of the Tables page, since metadata collection only sees
what the role can read.
Network restrictions
Supabase projects on a paid plan can restrict inbound connections to an IP allowlist under Project Settings → Database → Network Restrictions. If that list is in use, add Thunderduck’s addresses before creating the catalog; the current addresses are in static egress addresses.
Free projects have no inbound restriction, so nothing needs allowing there.
If the connection fails
| Message | Likely cause |
|---|---|
Network is unreachable, connection timed out against db.<ref>.supabase.co | Direct host over IPv4 — switch to the session pooler host |
prepared statement … does not exist, cursor errors | Port 6543 — the transaction pooler; use 5432 |
password authentication failed for user "postgres.<ref>" | Wrong database password, an API key, or a mismatched project ref in the username |
Tenant or user not found | The username is missing the .<project-ref> suffix, or the project ref is for another project |
Writing
The catalog is writable by default, so CREATE TABLE … AS SELECT and INSERT
work if the role permits them. Mark the catalog read-only in the form to block
writes at attach time whatever the SQL says.