Fair Coffee, Fair Data: Practical Bias Detection in Coffee Supply Chains with PostgreSQL
summary
Builds PostgreSQL from source with SQL/PGQ patches on an Apple M5 using Vagrant (Bento Debian 12), patch series grows from three to five during development, and aims for inclusion in Postgres 19. Models the coffee supply chain as four node types — farmer, cooperative, exporter, roaster — and runs SQL/PGQ graph queries to compare relational joins versus graph pattern matching. Queries count reachability and one two three hops patterns, surface exporters with many versus few linked farmers, and reveal limited market access among ~25 million farmers.
AI-written summary · about
chapters (7)
- 0:00Introduction to coffee and talk
- 2:42Building PostgreSQL from source
- 7:09SEC PGQ in SQL 2023
- 10:08Demo environment setup
- 11:14Coffee supply chain overview
- 13:09Traditional SQL vs SEC PGQ queries
- 21:18Key insights and conclusion
related talks
42mUsing Postgres to locate the best coffee near you!
46mPostgreSQL as a Graph Database: Who Grabbed a Beer Together?
21mDiscovering Postgres...
45mGraph databases, PostgreSQL and SQL/PGQ
48mUsing Postgres to locate the best coffee near you!
35mBreakout Session
50mFrom Transactions to Intelligence: Postgres for Open AI & Analyti
38mPostgreSQL as a distributed computing platform
