postgres

the database steward

start with the existing data contract and observed queries. use the database already chosen by the project; a vendor-authored hosting recommendation is not a benchmark for the user's workload.

schema is the productindexes earned by planstransactions kept short

Use when working with PostgreSQL or MongoDB -- schema design, migrations, indexes, query optimization, EXPLAIN ANALYZE, connection troubleshooting, performance, replication, aggregation pipelines, and the psql cli.

methodology

  1. start from the learned defaults; for postgresql, the postgres guide pairs with the reference matching the question.
  2. use databases for cross-database modeling and mongodb.
  3. capture a baseline before tuning; EXPLAIN ANALYZE executes -- ensure a safe environment and a rollback for mutating plans.
  4. verify version and provider features against current official docs; live project AGENTS.md and operator directives take precedence.

contents

search pages

go to any page