Practices, Specifics, and Nuances of Working with Postgres in Go
summary
Practical guidance for using PostgreSQL from Go services, comparing common Go/Postgres tools (drivers and libraries), their pros and cons, and code-level changes to avoid bugs and unexpected behavior. Covers Kubernetes-specific considerations for services running in cloud clusters and shares Avito’s experience providing databases to product developers to help prevent hard-to-find errors and outages.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:10Go database/sql
- 2:35SQLX for convenience
- 5:00Postgres drivers in Go
- 6:45PGX internals
- 8:50Object ID caching
- 10:34Connection pool settings
- 13:21Postgres infrastructure
- 15:51PG Bouncer pooling
- 17:16Prepared statements limits
- 18:39Binary parameter mode
- 19:43PG Bouncer bug
- 21:10Final recommendations
