Skip to content

fix(week10): PG_DBNAME default/example must be team1, not postgres#8

Merged
lassebenni merged 1 commit into
mainfrom
fix/pg-dbname-team1
Jul 8, 2026
Merged

fix(week10): PG_DBNAME default/example must be team1, not postgres#8
lassebenni merged 1 commit into
mainfrom
fix/pg-dbname-team1

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Situatie

A student on the c55 cohort hit dbt run failing with permission denied for database postgres while dbt debug reported All checks passed!.

Probleem

profiles.yml.example defaults PG_DBNAME to postgres, and the README/.env.example (merged in #7) told students to keep PG_DBNAME=postgres. The shared Azure Postgres database is actually named team1 (raw data lives in the nyc_taxi schema inside it). dbt debug only verifies the connection opens; it does not check that the role has grants on the target database, so the wrong default passes debug and only fails on the first real query.

Oplossing

  • profiles.yml.example: default PG_DBNAME to team1.
  • .env.example: export PG_DBNAME=team1.
  • README: update the inline comment to say PG_DBNAME stays team1.

Mirrors HackYourAssignment/c55-data-week-10#3. The CI-only dummy value in .github/workflows/dbt-parse.yml (PG_DBNAME: postgres) is untouched: that job never opens a real DB connection, so it's unaffected.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@lassebenni lassebenni merged commit b4d9131 into main Jul 8, 2026
1 of 2 checks passed
@lassebenni lassebenni deleted the fix/pg-dbname-team1 branch July 8, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant