Official docs outline
22 sections- SQL syntax
Lexical structure, identifiers and quoting, constants, operators, value expressions, function calls and NULL.
- Data definition
CREATE TABLE, data types, default values, ALTER TABLE, schemas and system columns.
- Constraints
Primary keys, foreign keys, unique, check, not-null and exclusion constraints, referential actions.
- Data manipulation
INSERT, UPDATE, DELETE, RETURNING and upserts.
- Queries
SELECT, select lists, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT/OFFSET and DISTINCT.
- Table expressions and joins
FROM clause, inner/outer/cross joins, subqueries, LATERAL and table functions.
- Combining queries
UNION, INTERSECT and EXCEPT set operations.
- WITH queries (CTEs)
Common table expressions, recursive queries and data-modifying CTEs.
- Data types
Numeric, character, date/time, boolean, enum, array, JSON, UUID and range types.
- JSON types and functions
json vs jsonb, operators, path queries and indexing.
- Functions and operators
Built-in comparison, logical, string, date/time, conditional, array and subquery expressions.
- Aggregate functions
COUNT, SUM, AVG, FILTER, GROUP BY with grouping sets and ordered-set aggregates.
- Window functions
OVER, PARTITION BY, ORDER BY frames, ranking, lag/lead and running totals.
- Type conversion
Implicit and explicit casts, operator and function type resolution.
- Views
Creating views, updatable views and materialized views.
- Indexes
B-tree, hash, GIN, GiST and BRIN indexes, multicolumn, partial and expression indexes, index-only scans.
- Transactions
BEGIN/COMMIT/ROLLBACK, atomicity and savepoints.
- Concurrency control and MVCC
Isolation levels, MVCC, row and table locking, deadlocks and serialization failures.
- Performance tips
EXPLAIN and EXPLAIN ANALYZE, planner statistics, bulk loading and query tuning.
- Table partitioning
Range, list and hash partitioning, partition pruning and inheritance.
- Privileges and row security
GRANT/REVOKE, roles and row-level security policies.
- Full text search
tsvector, tsquery, dictionaries, ranking and GIN indexing for text search.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.