PostgreSQL Basics 5 lessons
  1. 1 Why projects keep landing on Postgres
  2. 2 Getting set up and using it sign in to open
  3. 3 Indexes and performance sign in to open
  4. 4 Features worth knowing about sign in to open
  5. 5 Running it in production sign in to open
Course overview
Data: video · change

This lesson: 122KB

PostgreSQL Basics · Lesson 1 of 5

Why projects keep landing on Postgres

Know what it offers over the alternatives.

PostgreSQL has become the default choice for new projects, and the reasons are practical rather than fashionable.

It is genuinely free and open, with no licensing surprise at scale and no vendor deciding your terms.

It is strict about correctness. It enforces constraints properly, it does not silently coerce data into a type it was not given, and it does not quietly truncate a value that does not fit. MySQL historically permitted several of these, and a database that accepts wrong data quietly is a database that will surprise you later.

Its type system is unusually rich. Proper date and time types with time zone handling, arrays, ranges, and JSON stored in a binary form that can be indexed and queried. That last one matters: you can keep structured columns for what you know and a JSON column for what varies, without running a second database.

Full text search is built in, which is adequate for most applications and removes a whole external service.

Extensions add substantial capability, including geographic data and vector search for AI applications, which is why so much recent AI infrastructure is built on it.

It handles concurrent readers and writers well, because readers do not block writers and writers do not block readers.

Where MySQL still wins. Simpler replication, and being what most shared hosting offers, which matters for small PHP applications in this market.

Lab — try it yourself

Install Postgres locally and create one table with a proper date type and a JSON column. Both are reasons people choose it.

Check what you learned

Create your free BvLogic ID to take the quiz and record your score.

Create your BvLogic ID
Continue to lesson 2 Up next 2. Getting set up and using it