跳到主要内容
学院
中级 代码街区

PostgreSQL

强大的开源数据库,深入讲解。

PostgreSQL is the open-source database behind countless apps: posts, likes, points and game records all live in its tables. This track starts where the SQL course ends and teaches what makes Postgres special: psql, rich types such as jsonb and timestamptz, indexes and query plans, transactions and locking, window functions and full-text search, and running Postgres in production.

Everything is up to date for PostgreSQL 18, and every lesson is short, practical and checked with quizzes. The examples follow Nova, a made-up social app with users, posts, likes and game scores.

课时
21
时长
3 小时
级别
中级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Explore any Postgres server with psql and understand its databases, schemas and roles
  • Choose the right types: timestamptz, numeric, uuid, jsonb, arrays and enums
  • Read EXPLAIN ANALYZE and design indexes that make slow queries fast
  • Keep data correct under load with transactions, row locks and UPSERT
  • Build leaderboards, trees and search with window functions, recursive CTEs and full-text search
  • Run Postgres in production: least privilege, pooling, VACUUM, backups and monitoring

学习旅程

  1. 1
    第 1 单元

    Postgres essentials

    Why Postgres, and how to find your way around a server with psql.

    0 / 3
  2. 2
    第 2 单元

    Rich data types

    Store text, money, time, documents and lists the Postgres way.

    0 / 4
  3. 3
    第 3 单元

    Indexes and performance

    Read query plans and build the indexes that make them fast.

    0 / 3
  4. 4
    第 4 单元

    Transactions and concurrency

    Stay correct when thousands of users write at the same moment.

    0 / 3
  5. 5
    第 5 单元

    Advanced SQL in Postgres

    Leaderboards, trees, top-N per group and real search, in plain SQL.

    0 / 4
  6. 6
    第 6 单元

    Running Postgres

    Security, pooling, VACUUM, backups and monitoring in production.

    0 / 4

快速导航