# Postgres database care

PostgreSQL-specific checks for heavy schemas, large imports, write churn, database cost, and source rebuilds.

- [Make this database easier to trust and operate](https://www.atlasscope.dev/prompts/make-this-database-easier-to-trust-and-operate): Runs one high-level check across a PostgreSQL database and ranks the handful of root issues causing most of the slowness, cost, or data-quality risk.
- [Find data that is internally consistent but wrong](https://www.atlasscope.dev/prompts/find-data-that-is-internally-consistent-but-wrong): Checks cross-table totals, accounting identities, and realistic ranges to catch data that passes every database rule yet is still factually wrong.
- [Find where records silently change identity](https://www.atlasscope.dev/prompts/find-where-records-silently-change-identity): Catches real-world entities (customers, companies, products) that got split into duplicate rows or accidentally merged into one across imports.
- [Map every place that writes to the database](https://www.atlasscope.dev/prompts/map-every-place-that-writes-to-the-database): Lists every API route, script, trigger, background job, and agent that writes to your core tables, highlighting where two writers can collide.
- [Stop rewriting data that hasn't changed](https://www.atlasscope.dev/prompts/stop-rewriting-data-that-hasnt-changed): Measures how many database writes actually change data versus needlessly rewriting identical rows and inflating Postgres storage and billing.
- [Is our ingestion process more complicated than necessary?](https://www.atlasscope.dev/prompts/is-our-ingestion-process-more-complicated-than-necessary): Follows one full data import from raw source to final Postgres tables and cuts out redundant parsing, intermediate tables, and double work.
- [Find where write logic should live](https://www.atlasscope.dev/prompts/find-where-write-logic-should-live): Untangles validation and business rules split across app code, Postgres triggers, SQL functions, and background jobs, and picks one clear home for each.
- [Which database objects no longer earn their keep?](https://www.atlasscope.dev/prompts/which-database-objects-no-longer-earn-their-keep): Inventories your Postgres views, materialized views, triggers, functions, and indexes to flag unused or redundant objects and what removing each would risk.
- [Can the schema be easier to understand without losing depth?](https://www.atlasscope.dev/prompts/can-the-schema-be-easier-to-understand-without-losing-depth): Spots confusing table names, overloaded columns, and tangled schema boundaries that keep tripping up people and coding agents.
- [Find the true sources of database waste](https://www.atlasscope.dev/prompts/find-the-true-sources-of-database-waste): Measures which Postgres tables, unused indexes, bloated rows, and heavy queries consume the most storage, CPU, and money.
- [Can we rebuild this database from its sources?](https://www.atlasscope.dev/prompts/can-we-rebuild-this-database-from-its-sources): Checks whether your Postgres database could be recreated from scratch using your repo, migrations, and raw source files, and exposes what exists only in production.

Source: https://www.atlasscope.dev/prompts/postgres-database-care
