Skip to main content
Airhouse accepts connections from any Postgres client over the standard wire protocol. psql uses the simple query protocol, which Airhouse supports completely, so it’s the most reliable way to explore your data.

Connection parameters

Airhouse uses the Postgres database parameter to pick your Airhouse database. If the database doesn’t exist, the connection fails with database "..." does not exist (SQLSTATE 3D000).

Connect

The same connection as a URL:
With TLS enabled on the server:
Set PGPASSWORD (or use a ~/.pgpass file) to avoid the password prompt in scripts.

Meta-commands

These psql meta-commands are supported: To see the columns of a table, use DuckDB’s DESCRIBE or information_schema:
Command tags work as in Postgres, for example INSERT 0 2, UPDATE 1, SELECT 3, and CREATE TABLE.

Load data from a local file

Use psql’s \copy to stream a local CSV file into a table:
\copy sends the file over the connection with COPY ... FROM STDIN, so the file only needs to exist on your machine. Loading data requires the writer or admin role.

Run a single statement

Next steps