A schema you can rely on
Transactions, constraints and foreign keys help preserve relationships as your application grows.
Read the official guideKeep your orders, accounts and application state in relational tables. Use JSONB for the fields that do not fit one fixed shape. PostgreSQL lets both live behind the same SQL connection.
SELECT account_id, SUM(total) AS revenue
FROM orders
WHERE status = 'paid'
GROUP BY account_id
ORDER BY revenue DESC;Working with PostgreSQL
Transactions, constraints and foreign keys help preserve relationships as your application grows.
Read the official guideQuery JSONB values and index the paths your application actually searches.
Read the official guideExplore B-tree, GIN and other index types. Choose based on your queries, not just your table size.
Read the official guideApplication backends, SaaS products and reporting that benefits from joins and flexible data types.
Extensions and major-version compatibility need checking before migration. Remote read replicas can lag; they do not automatically become writers.
The workspace brings connections, access and recovery together. Your application keeps its standard database client.
Find your endpoint, port, credentials and certificate together, with examples for standard clients.
Set allowed IPs and give applications separate users. Review permissions before opening access.
Full backups and recovery logs are stored off-server. Your workspace shows completed coverage.
Choose a published node type, region and storage. Review your monthly total before checkout.