Skip to content

11th edition · PostgreSQL 17 · 2025

Postgres:The First Experience

Install a database, write your first SQL query, explore the Bookings demo database, and connect an application. A practical introduction to PostgreSQL, one step at a time.

By Pavel Luzanov, Egor Rogov, and Igor Levshin

Authors

Translated by Liudmila Mantrova and Alexander Meleshko Cover design by Eteri Bezhashvili

Summary

A Welcoming, Structured First Step into the PostgreSQL Ecosystem

Refined across eleven editions by Postgres Professional, taking newcomers from install to real workflows.

Postgres. The First Experience (11th Edition, 2025) by Pavel Luzanov, Egor Rogov, and Igor Levshin is the entry-level handbook of the Postgres Professional curriculum. Updated for PostgreSQL 17, it walks through PostgreSQL’s architecture and history, what’s new in PostgreSQL 17, installation and quick start, SQL fundamentals, the classic Bookings airline demo database, application connectivity, server configuration, pgAdmin, notable extensions, and a curated roadmap for further study (The Hacker’s Guide to the Galaxy).

Edition and credits

11th edition, for PostgreSQL 17

The book
Postgres. The First Experience, 11th edition, revised and updated, by Pavel Luzanov, Egor Rogov, and Igor Levshin. © Postgres Professional, 2016–2025. ISBN 978-5-6045970-8-8. Publisher’s page
Web edition
Reproduces the text and illustrations of the 11th edition PDF, keeping the original chapter order, examples, and version-specific behavior. Publication and credits
Original PDF
The 11th edition PDF (13 MB), the source of this web edition.

Figures

Corrections and reading notes

These notes were added by the web edition after checking the supplied PDF against the PostgreSQL 17 documentation. The chapter text and examples retain the original wording. Chapter summaries and descriptive figure captions are also additions to aid navigation. Page numbers below refer to the printed book; the PDF page number is one higher.

Replication slot status — p. 18

In Logical replication, conflicting and invalidation_reason belong to pg_replication_slots. The source names pg_stat_replication in error. See the PostgreSQL 17 view definition.

Direct TLS — p. 20

In Access control, use sslnegotiation=direct together with sslmode=require, verify-ca, or verify-full. The source’s requiredirect is not a valid value. See the libpq connection parameters.

Grouping keys — p. 20

In Query planning and execution, the planner reorders GROUP BY keys, rather than tables, to use an available ordering. See enable_group_by_reordering.

Parallel functions — p. 20

The same section needs a qualification: a function using a subtransaction for error recovery may be explicitly marked PARALLEL SAFE when all its operations meet the safety requirements. Functions remain PARALLEL UNSAFE by default; an EXCEPTION block does not automatically make them safe. See CREATE FUNCTION.

Synchronization option — p. 23

In Miscellaneous, the utility option is --sync-method. The source spells it --synch-method. See the PostgreSQL 17 release notes.

Combined I/O size — p. 23

In that section, an io_combine_limit value written without a unit is measured in database blocks, normally 8 kB each. It is not a raw byte count. The default is 128 kB. See io_combine_limit.

Logical replication during upgrades — p. 17

The upgrade description applies when the old cluster is PostgreSQL 17 or later. It does not promise preservation of logical slots and subscriptions when upgrading a pre-17 cluster to 17. See the PostgreSQL 17 release notes.

Debian and Ubuntu installation — p. 30

The repository command needs a space: $(lsb_release -cs). The PDF prints $(lsb_release-cs), which attempts to run a different command. The distribution list and apt-key workflow also reflect the original edition. For a new installation, follow the PostgreSQL project’s current Debian or Ubuntu instructions and select PostgreSQL 17 to match this book.

The original link at the end of Grouping returned HTTP 404 during this review. The displayed address preserves the source wording; its link now opens the PostgreSQL 17 GROUP BY reference. The original destination is recorded in the source manifest.