Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-postgresql

What is PostgreSQL?

Last reviewed May 28, 2026 Content v20260528
Track mode
sql_sandbox
Means
SQL sandbox
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is PostgreSQL?: the SQL patterns, schema habits, and query reasoning you need before advancing in PostgreSQL.

Teams query What is PostgreSQL? on every PostgreSQL codebase—skipping it leaves gaps in debugging and data reviews.

You will apply What is PostgreSQL? in contexts like: Modern startups, geospatial apps, and analytics-friendly OLTP systems.

Copy Postgres SQL into psql, local PostgreSQL, or DB Fiddle (PostgreSQL dialect)—use \d and EXPLAIN ANALYZE where lessons show them. The in-browser lab ships later; psql is the practice path now.

After the core SQL track—when your stack standardizes on a specific database engine.

PostgreSQL is a client/server relational database management system (RDBMS). A postgres server process stores data on disk; clients (psql, Django, Python psycopg) connect over TCP and send SQL.

Core characteristics

  • ACID — transactions with durable commits (WAL)
  • Extensible — custom types, operators, and extensions (PostGIS, citext)
  • Standards-oriented — strong SQL support including window functions and CTEs
  • Open source — permissive license; managed offerings (RDS, Cloud SQL, Neon) run the same engine

Server vs database vs schema

-- List databases (superuser or allowed role)
\l

-- Connect to a database
\c practice

-- List schemas in current database
\dn

In Postgres, a cluster hosts multiple databases; each database has schemas (namespaces) holding tables. Default schema is public.

Practice: Copy SQL into psql, a local PostgreSQL server, or DB Fiddle (PostgreSQL dialect). Compare output with the lesson.

Who uses Postgres?

Common in SaaS backends, geospatial apps (PostGIS), analytics pipelines, and Django's recommended production database. Compare engine trade-offs in MySQL when your org standardizes differently.

Important interview questions and answers

  1. Q: Postgres vs SQLite?
    A: SQLite is embedded in a file; Postgres is a multi-user server with concurrent writers and richer types.
  2. Q: What is WAL?
    A: Write-Ahead Log—changes hit the log before data files, enabling crash recovery and replication.

Self-check

  1. Name one Postgres feature not in basic SQLite.
  2. What is the default schema name?

Tip: Remember cluster → database → schema → table hierarchy when reading \l and \dn output.

Interview prep

What is MVCC?

Multi-version concurrency control—readers see snapshots; vacuum reclaims dead tuples.

Default schema?

public—qualify names in security-sensitive SQL.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • MVCC idea?
  • JSONB vs JSON?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump