r/learnSQL • • Aug 27 '26

Beginner learning PostgreSQL with a goal of becoming a backend engineer — looking for advice

Hi everyone,

I’m currently learning SQL and PostgreSQL with the long-term goal of becoming a backend engineer.

I’ve been practicing locally with PostgreSQL and pgAdmin, so I’m especially interested in hearing from developers who use PostgreSQL in production.

I’m still a beginner. So far I’ve been practicing things like creating tables, INSERT, SELECT, WHERE, DISTINCT, ORDER BY, and LIMIT. I’m also starting to learn Python and eventually want to connect Python/FastAPI with PostgreSQL.

One thing I’m trying to understand is how SQL and PostgreSQL are actually used by backend engineers in real jobs, compared with the way SQL is taught in books and courses.

For backend engineers who use PostgreSQL regularly:

  • What SQL/PostgreSQL skills do you use the most?
  • At what point should a beginner start combining Python with PostgreSQL?
  • What database concepts should I make sure I understand before getting deeper into backend development?
  • Are there any beginner projects you would recommend that resemble real backend work?

I’m not looking for shortcuts. I’m trying to build a solid foundation and understand what skills actually matter on the job.

Any advice from backend engineers, especially those working with PostgreSQL, would be greatly appreciated. Thanks!

7 Upvotes

7 comments sorted by

View all comments

1

u/navicat-gu Oct 22 '26

Backend engineers rarely write textbook-style SELECT … WHERE all day. The SQL that shows up at work is closer to:

  • Joins, aggregates, window functions (ROW_NUMBER, LAG, running totals)
  • Indexes and reading EXPLAIN (ANALYZE, BUFFERS)
  • Transactions, isolation, and "why is this locked?"
  • Migrations (Alembic, Flyway, Sqitch) as the source of truth for schema
  • Constraints (PK/FK/UNIQUE/CHECK) and why they belong in the database, not only in Python

When to add Python/FastAPI: as soon as SELECT/INSERT feel comfortable — don't wait until you "finish SQL". A tiny FastAPI app that creates a user, stores it with asyncpg or SQLAlchemy, and reads it back teaches you connection pooling, parameterised queries and migrations faster than more isolated drills.

Concepts worth locking in before job apps: normalisation vs deliberate denormalisation, transactions, indexes (B-tree at minimum), NULL behaviour, and the difference between the database and the client (pgAdmin is only a client).

Project ideas that look like real backend work: a URL shortener; a small inventory API with stock movements; a blog with users/posts/comments and pagination; anything where you write migrations and seed data, not just one big schema.sql.

Disclosure: I'm RC, Director of Digital Strategy @ Navicat. For local practice alongside pgAdmin, Navicat Premium Lite is free to try (Navicat 18) and gives you a straightforward query editor and object designer against PostgreSQL. Visual explain and modelling are in the paid Premium editions if you want them later — they are not required while you are learning.