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.
Authors
Translated by Liudmila Mantrova and Alexander Meleshko Cover design by Eteri Bezhashvili
Contents
Twelve chapters, from the first install to the community
“We have written this small book for those who only start getting acquainted with the world of PostgreSQL.” — Introduction
- 1 About PostgreSQL History, licensing, reliability, extensibility, and the community.
- 2 What's New in PostgreSQL 17 SQL/JSON, replication, vacuum, incremental backups, and monitoring.
- 3 Installation and Quick Start Install PostgreSQL 17 on Windows, Debian, or Ubuntu and manage it.
- 4 Trying SQL Connect with psql, create tables, change data, and try transactions.
- 5 Demo Database Explore the airline bookings database with realistic flight data.
- 6 PostgreSQL for Applications Connect from PHP, Perl, Python, and Java with queries and transactions.
- 7 Configuring PostgreSQL Memory, logging, connections, and access rules for a first deployment.
- 8 pgAdmin Register a server, browse objects, and run SQL in the query tool.
- 9 Additional Features Full-text search, JSON and JSONB, and foreign data wrappers.
- 10 Education and Certification Documentation, training courses, certification, and recommended books.
- 11 The Hacker's Guide to the Galaxy Blogs, mailing lists, Commitfests, and conferences to follow.
- 12 Postgres Professional The original edition’s introduction to Postgres Professional.
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
- Figure 3.1 — Selecting installation components
- Figure 3.2 — Choosing the data directory
- Figure 3.3 — Setting server connection options
- Figure 3.4 — Choosing server configuration defaults
- Figure 4.1 — Launching SQL Shell from the Start menu
- Figure 5.1 — Bookings database relationships
- Figure 5.2 — Airports and routes in the demo database
- Figure 7.1 — Connecting a 1C infobase to PostgreSQL
- Figure 8.1 — Registering a server in pgAdmin
- Figure 8.2 — Browsing database objects in pgAdmin
- Figure 8.3 — Running a query in pgAdmin
- Figure 10.1 — Administration course pathways
- Figure 10.2 — Development course pathways
- Figure 10.3 — Postgres Pro Enterprise course prerequisites
- Figure 10.4 — PostgreSQL. SQL Basics — book cover
- Figure 10.5 — Evgeny Morgunov
- Figure 10.6 — Database Technology Fundamentals — book cover
- Figure 10.7 — Boris Novikov
- Figure 10.8 — PostgreSQL 14 Internals — book cover
- Figure 10.9 — Egor Rogov
- Figure 10.10 — PostgreSQL Monitoring — book cover
- Figure 10.11 — Alexey Lesovsky
- Figure 10.12 — A Database Guide — book cover
- Figure 10.13 — Vladimir Komarov
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.
SELECT documentation link — p. 53
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.