Skip to content
mentoor

PostgreSQL in practice

For engineers

Using PostgreSQL features in real apps: JSONB, full-text search, pgvector, backups and finding slow queries

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Why does a full-text search for 'invoices' also find a row containing 'invoice'?

Choose one answer

Check yourself · 3 of 5

Why store pgvector embeddings in the same Postgres database as the rest of the app data?

Choose one answer

Check yourself · 4 of 5

Which pg_stat_statements column best ranks queries by overall load on the server?

Choose one answer

Check yourself · 5 of 5

An engineer runs DELETE FROM orders without a WHERE clause. Why does a streaming replica not save the data?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. Finding slow PostgreSQL queries5 min read · pg_stat_statements, EXPLAIN ANALYZE, autovacuum and table bloat, connection pooling with PgBouncer, and statement timeouts
  5. 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

Helps to know first

110 questions · last verified 2026-12