Foundations
Connection targets, object maps, relational modeling, transaction semantics, and delivery baselines.
CHINESE-LANGUAGE FIELD GUIDE · PostgreSQL 18.6 · Pigsty v4.5.0
A 36-chapter path from writing SQL to delivering, operating, recovering, and continuously improving PostgreSQL in production.
This landing page is in English; the manuscript, labs, and detailed indexes are currently in Chinese.
What the book is for
PostgreSQL is the subject. Pigsty is the common lab environment, observation surface, and one production reference implementation.
This is not a catalogue of commands, parameters, or product features. The first volume moves from objects, modeling, queries, concurrency, and releases toward reliable application delivery. The second moves from deployment, HA, backup, observability, and capacity toward incident recovery and durable improvement.
Every chapter is expected to produce something reproducible, reviewable, or drillable. Platform claims return to PostgreSQL SQL, catalogs, logs, or component evidence; sample output is never presented as a version-free universal truth.
Six parts
Three parts for application engineering and three for operations, six chapters each.
Connection targets, object maps, relational modeling, transaction semantics, and delivery baselines.
Plans, statistics, indexes, concurrency control, and release discipline for dependable services.
Where procedures, extensions, search, spatiotemporal, and analytical capabilities fit—and where they stop.
Derive deployment, HA, backup, access, and security from SLOs, failure domains, and recovery goals.
Observability, capacity baselines, resource governance, maintenance, migration, and upgrades.
Scene preservation, PITR, failover, overload control, data forensics, and postmortem hardening.
Operational indexes
Five indexes map roles, tasks, capability boundaries, and symptoms to the formal chapters; the numbered contents locates every section and stable anchor.
Find the core, supporting, and incident chapters adjacent to your responsibilities.
Work backward from an engineering task to its concepts, labs, and acceptance checks.
Separate native mechanisms, generic platform duties, and a concrete reference implementation.
Route symptoms into PITR, HA, overload, or integrity work while naming the first prohibited action.
Evaluate partitioning across the data lifecycle instead of reducing it to table syntax.
Locate every chapter, standalone section page, and stable third-level anchor.
Lab contract
Every lab follows the same evidence chain:
PostgreSQL 18.6 and Pigsty v4.5.0 are the current reproducibility baseline. Other versions are called out where they matter.
Contents are for browsing; indexes are for solving; the guide keeps labs safe.Before Chapter 1, confirm the Chinese reader assumptions, safety rules, and disposable lab contract.