Resources on SQL
Last updated
Websites
- All you need is PostgreSQL
- modern-sql.com — Markus Winand
- Postgres Weekly
- Row Level Security — Bennie Swart (Postgres Conference 2019 slides)
- Simplify: move code into database functions
- Use the Index, Luke! — Markus Winand (also available as SQL Performance Explained)
- www.craigkerstiens.com — Craig Kerstiens
Books
- Database in Depth — C.J. Date
- PostgreSQL 14 Internals — Egor Rogov (free PDF)
- SQL for Smarties — Joe Celko
- SQL Performance Explained — Markus Winand
Documentation
- Postgres
- Data Type Formatting Functions
- JSON Functions and Operators
- PL/pgSQL — SQL Procedural Language
- PL/pgSQL is very useful for writing complex migrations or pushing business logic into your database.
- Postgres Wiki
- Window Function Calls
- Windowing in SQL is great for analytical queries and it offers more options for whenever basic
GROUP BYs and aggregate functions break down.
- Windowing in SQL is great for analytical queries and it offers more options for whenever basic
- psql (PostgreSQL interactive terminal)
- A few psql tricks (
\ito run SQL from a local file,\oto route output to a local file,\copyfor… copying) can go a long way. - If you use vim-dadbod to connect to Postgres from Vim/NeoVim, all the features in psql are suddenly available directly in your editor.
- A few psql tricks (
Resources tagged sql
Resources tagged programming
Posts tagged sql
- You should read: PostgreSQL 14 InternalsSeptember 17, 2026
- Natural Primary Keys for Forum PostsSeptember 16, 2026
- Join as Little as PossibleJuly 10, 2026
- Postgres TIL: Multi-Line Copy in psqlJuly 8, 2026
- Postgres TIL: SECURITY DEFINERJune 29, 2026
- Query this Blog with DuckDBJune 25, 2026
Posts tagged programming
- Thoughts on Rich Hickey's Talk: In ContextOctober 22, 2026
- Tree Calculus in F#October 6, 2026
- You should read: PostgreSQL 14 InternalsSeptember 17, 2026
- Natural Primary Keys for Forum PostsSeptember 16, 2026
- OKLCH Colors and Tinting Your Blacks & WhitesSeptember 5, 2026
- Writing an RPN Calculator in 49 Lines of CodeSeptember 1, 2026
- The Socratic ProgrammerAugust 6, 2026
- Cursed MacOS GUI Programming with OdinJuly 8, 2026
- Make your own NeoVim ThemeJuly 7, 2026
- Query this Blog with DuckDBJune 25, 2026
- Write Game UIs like a CavemanJune 23, 2026
- Being a Professional ProgrammerMay 4, 2026
- Godot Virtual JoystickApril 22, 2026
- Making a Lichess TV Viewer with HyperscriptApril 16, 2026