PostgreSQL in practice
For engineers
Using PostgreSQL features in real apps: JSONB, full-text search, pgvector, backups and finding slow queries
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which column type should hold a webhook payload you want to search inside with an index?
Check yourself · 2 of 5
Why does a full-text search for 'invoices' also find a row containing 'invoice'?
Check yourself · 3 of 5
Why store pgvector embeddings in the same Postgres database as the rest of the app data?
Check yourself · 4 of 5
Which pg_stat_statements column best ranks queries by overall load on the server?
Check yourself · 5 of 5
An engineer runs DELETE FROM orders without a WHERE clause. Why does a streaming replica not save the data?
Topics
- JSONB columns and their indexes4 min read · When to store JSONB versus real columns, containment queries, GIN indexes, and checking the shape of model output saved as JSON
- Full-text search built into PostgreSQL4 min read · tsvector and tsquery, language configurations, ranking, generated columns, and when Postgres search is enough before adding a search engine
- Running pgvector next to application data5 min read · Vector columns, HNSW versus IVFFlat indexes, memory and build time, filtered queries, and re-embedding rows when their text changes
- Finding slow PostgreSQL queries5 min read · pg_stat_statements, EXPLAIN ANALYZE, autovacuum and table bloat, connection pooling with PgBouncer, and statement timeouts
- Backups and point-in-time recovery5 min read · pg_dump versus base backups with WAL archiving, managed-service recovery windows, replicas that are not backups, and the restore drill
Start here
- PostgreSQL: JSON types (opens in a new tab)DocsFree
jsonb versus json, the containment operator and the GIN operator classes.
- PostgreSQL: Full text search (opens in a new tab)DocsFree
tsvector, tsquery, ranking, configurations and indexes for text search.
- pgvector: open-source vector similarity search for Postgres (opens in a new tab)ToolFree
Vector types, HNSW and IVFFlat settings, filtering and the trade-offs of each index.
Helps to know first
110 questions · last verified 2026-12