Data
Database
Choose the authoritative system of record by data shape, access patterns, integrity, recovery, and operating constraints.
Recommendation
Start with PostgreSQL for a conventional SaaS or business application.
Choose the data model before the provider
The decisive questions describe the application's records and failure obligations, not a vendor feature checklist.
When the relational baseline changes
These are architecture exceptions with different ownership and portability boundaries, not interchangeable PostgreSQL hosts.
You want one integrated backend
Evaluate Supabase.
PostgreSQL, Auth, Storage, Realtime, APIs, and policy tooling can remove substantial assembly work for a small team.
Verify: Treat this as a platform decision; independently replaceable identity, storage, API, and database boundaries point elsewhere.123
You want focused elastic PostgreSQL
Evaluate Neon.
It preserves a PostgreSQL-focused service boundary while adding branching and elastic compute.
Verify: Validate suspension, connections, recovery, region availability, capacity, and usage economics against the real workload.124
The application is intentionally Cloudflare-native
Evaluate Cloudflare D1.
Workers bindings and SQLite semantics can be a coherent fit for a platform-native application.
Verify: Do not use it when PostgreSQL compatibility, provider portability, or workload behavior outside D1's documented limits is required.1256
The domain is intrinsically document-shaped
Evaluate MongoDB.
Bounded aggregates can map naturally to documents when relationships and cross-aggregate transactions are not dominant.
Verify: Choosing documents merely to avoid schema design is not enough; relational integrity and SQL-shaped access should keep PostgreSQL in front.127
Boundary: This Task chooses the source-of-truth family. Managed PostgreSQL providers, serverless elasticity, ORMs, caches, lexical search, vector search, and file storage are separate downstream decisions.
Official resources
Use the primary documentation to validate product boundaries, operating behavior, limits, and current commercial terms.
Sources
Official documentation supporting the decision routes and their boundaries.
- 1PostgreSQL documentation
PostgreSQL · Accessed Official
- 2PostgreSQL constraints
PostgreSQL · Accessed Official
- 3Supabase database overview
Supabase · Accessed Official
- 4Neon introduction
Neon · Accessed Official
- 5Cloudflare D1 documentation
Cloudflare · Accessed Official
- 6Cloudflare D1 limits
Cloudflare · Accessed Official
- 7MongoDB data modeling
MongoDB · Accessed Official