From b8512397c0d662567693c106f6412254e88a364d Mon Sep 17 00:00:00 2001 From: Lasse Benninga Date: Wed, 8 Jul 2026 23:00:08 +0200 Subject: [PATCH] fix(week10): PG_DBNAME default/example must be team1, not postgres The shared Azure Postgres database is named team1 (raw data lives in the nyc_taxi schema inside it), not postgres. Students following the previous default/README hit 'permission denied for database postgres' on dbt run even though dbt debug passed (debug only checks that the connection opens, not that the role has grants on that database). Co-Authored-By: Claude Opus 4.8 (1M context) --- .env.example | 2 +- README.md | 2 +- profiles.yml.example | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 30658e3..44b7807 100644 --- a/.env.example +++ b/.env.example @@ -9,4 +9,4 @@ export PG_HOST=.postgres.database.azure.com export PG_USER= export PG_PASSWORD= -export PG_DBNAME=postgres +export PG_DBNAME=team1 diff --git a/README.md b/README.md index 2f6f389..44b29db 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ cp profiles.yml.example profiles.yml ```bash cp .env.example .env -# edit .env: fill in PG_HOST, PG_USER, PG_PASSWORD (PG_DBNAME stays postgres) +# edit .env: fill in PG_HOST, PG_USER, PG_PASSWORD (PG_DBNAME stays team1) source .env ``` diff --git a/profiles.yml.example b/profiles.yml.example index c04ec56..24916ff 100644 --- a/profiles.yml.example +++ b/profiles.yml.example @@ -7,7 +7,7 @@ nyc_taxi_borough_daily: port: 5432 user: "{{ env_var('PG_USER') }}" password: "{{ env_var('PG_PASSWORD') }}" - dbname: "{{ env_var('PG_DBNAME', 'postgres') }}" + dbname: "{{ env_var('PG_DBNAME', 'team1') }}" schema: "dev_" # TODO: replace with your first name (the schema you already own) sslmode: require # Azure Database for PostgreSQL requires an encrypted connection threads: 1