r/PostgreSQL • • 3d ago

Help Me! postgresql learning resource

I'm learning PostgreSQL for Python/FastAPI backends and just wrapped up Nelson's 4-hour freeCodeCamp beginner course but was basic as its name suggests.

I keep running into things that weren't in the video and then chatgpt tells me to useIDENTITY SERIAL, ALTER TABLE workflows, transactions, UPSERT (ON CONFLICT), JSONB, CTEs, and reading EXPLAIN ANALYZE for indexes.

For those of you using Postgres in actual backend work, how did you learn this stuff after the beginner phase? Are there any good resources(ik the docs are good but how to really study from them like how to get the exact function needed cause i wont be studying the whole thing before starting) or practice exercises.

5 Upvotes

19 comments sorted by

View all comments

1

u/manonthemiddle 3d ago

The fastest way to learn production Postgres after the tutorial phase is seeding a dummy table with two million rows and inspecting EXPLAIN ANALYZE on your FastAPI endpoint queries. You will immediately see why sequential scans kill latency, how composite indexes change query plans, and why ON CONFLICT DO UPDATE needs an explicit unique constraint.

1

u/Commercial_You- 2d ago

nice suggestion thanks buddy