Learn about essential tips and practices for working with Postgres that aren't always clear from the documentation. Covers topics like data normalization, useful psql shortcuts, handling NULLs, the importance of indexing, and managing locks. Also addresses the use of JSONB for flexible data storage and the potential pitfalls of long-running transactions.
Table of contents
Normalize your data unless you have a good reason not toFollow all the advice from the folks that make PostgresNote some general SQL eccentricitiesYou can make psql more usefulIt’s possible that adding an index will do nothing (particularly if it’s misconfigured)Long-held locks can break your app (even ACCESS SHARE )JSONB is a sharp knifeAnyway…1 Comment
Sort: