psql, and run a few queries.
Prerequisites
- Access to Airhouse from Oxygen, and the image tag to use
- Docker with Docker Compose
psql(any recent PostgreSQL client)curl
1
Log in to the registry
The Airhouse image is published to the GitHub Container Registry at
ghcr.io/oxy-hq/airhouse. If Oxygen gave you registry credentials, log in with them:2
Create a Compose file
Save the following as
docker-compose.yml in an empty directory:docker-compose.yml
3
Start the stack
4
Create a database and a user
Airhouse databases and users are managed through the Admin API on port
8080. Create a database named demo, then a user alice with the admin role:5
Connect with psql
alice-password when prompted. The dbname is the database you created in the previous step.6
Run your first queries
Create a table in the Update and delete rows just like in Postgres:List your tables with
lake catalog, load some rows, and query them:\dt. Your data is now stored as Parquet files in the airhouse bucket, and survives restarts of the stack.Clean up
Next steps
- Connect from drivers and BI tools
- Tables and storage: transactions, time travel, and schema changes
- Databases and users: manage databases and users with the Admin API