Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Learn PostgreSQL: Use, manage, and build secure and scalable databases with PostgreSQL 16
Purchase options and add-ons
This new edition will help you learn PostgreSQL from scratch with the latest version, providing a complete focused view on aspects like configuration, high performance, partitioning, backup, server-side programming and replication.
Purchase of the print or Kindle book includes a free eBook in PDF format.
Key Features
- Learn the fundamentals of PostgreSQL 16, including SQL statements, replication, and security
- Enhance your learning journey with the provided Docker images for practical hands-on exercises and tests at the end of each chapter
- Get new and improved examples, use-cases, and scenarios specifically for concepts like partitioning, replication, back-up and restore, cluster configuration, monitoring and others
Book Description
The latest edition of this PostgreSQL book will help you to start using PostgreSQL from absolute scratch, helping you to quickly understand the internal workings of the database. With a structured approach and practical examples, go on a journey that covers the basics, from SQL statements and how to run server-side programs, to configuring, managing, securing, and optimizing database performance.
This new edition will not only help you get to grips with all the recent changes within the PostgreSQL ecosystem but will also dig deeper into concepts like partitioning and replication with a fresh set of examples. The book is also equipped with Docker images for each chapter which makes the learning experience faster and easier. Starting with the absolute basics of databases, the book sails through to advanced concepts like window functions, logging, auditing, extending the database, configuration, partitioning, and replication. It will also help you seamlessly migrate your existing database system to PostgreSQL and contains a dedicated chapter on disaster recovery. Each chapter ends with practice questions to test your learning at regular intervals.
By the end of this book, you will be able to install, configure, manage, and develop applications against a PostgreSQL database.
What you will learn
- Gain a deeper understanding of PostgreSQL internals like transactions, MVCC, security and replication
- Enhance data management with PostgreSQL’s latest partitioning features
- Choose the right replication strategy for your database
- See concrete examples of how to migrate data from another database, perform backups and restores, monitor your PostgreSQL installation and more
- Ensure security and compliance with schemas and user privileges
- Create customized database functions and extensions
- Get to grips with server-side programming, window functions, and triggers
Who this book is for
Learning PostgresSQL 16 book is for anyone interested in learning about the PostgreSQL database from scratch. Anyone looking to build robust data warehousing applications and scale the database for high-availability and performance using the latest features of PostgreSQL will also find this book useful. Although prior knowledge of PostgreSQL is not required, familiarity with databases is expected.
Table of Contents
- Introduction to PostgreSQL
- Getting to Know Your Cluster
- Managing Users and Connections
- Basic Statements
- Advanced Statements
- Window Functions
- Server-Side Programming
- Triggers and Rules
- Partitioning
- Users, Roles, and Database Security
- Transactions, MVCC, WALs, and Checkpoints
- Extending the Database- the Extension Ecosystem
- Query Tuning, Indexes, and Performance Optimization
- Logging and Auditing
- Backup and Restore
- Configuration and Monitoring
(N.B. Please use the Look Inside option to see further chapters)
- ISBN-101837635641
- ISBN-13978-1837635641
- Edition2nd
- PublisherPackt Publishing
- Publication dateOctober 31, 2023
- LanguageEnglish
- Dimensions7.5 x 1.68 x 9.25 inches
- Print length744 pages
Frequently bought together

Customers who viewed this item also viewed
- Just Use Postgres!: All the database you needPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- PostgreSQL 16 Administration Cookbook: Solve real-world Database Administration challenges with 180+ practical recipes and best practicesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- Mastering PostgreSQL 17: Elevate your database skills with advanced deployment, optimization, and security strategiesPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- PostgreSQL for Absolute Beginners: A Hands-On Guide to SQL, Tables, Queries, Relationships, and Building Your First DatabasePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- PostgreSQL: Up and Running: A Practical Guide to the Advanced Open Source DatabasePaperback$3.99 shippingGet it Sep 30 - Oct 5Usually ships within 5 to 6 days
- Beginning Databases with PostgreSQL: From Novice to Professional (Beginning From Novice to Professional) (Volume 0)Richard StonesPaperbackFREE ShippingOnly 2 left in stock - order soon.
Customers also bought or read
- PostgreSQL 16 Administration Cookbook: Solve real-world Database Administration challenges with 180+ practical recipes and best practices
Paperback$31.99$31.99Delivery Mon, Sep 21 - Mastering PostgreSQL 17: Elevate your database skills with advanced deployment, optimization, and security strategies
Paperback$41.99$41.99FREE delivery Mon, Sep 21 - PostgreSQL: Up and Running: A Practical Guide to the Advanced Open Source Database
Paperback$34.60$34.60$3.99 delivery Sep 30 - Oct 5 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
Paperback$19.99$19.99Delivery Sun, Sep 20 - PostgreSQL Query Optimization: The Ultimate Guide to Building Efficient Queries
Paperback$36.68$36.68FREE delivery Mon, Sep 21 - Mastering Go: Leverage Go's expertise for advanced utilities, empowering you to develop professional software
Paperback$35.00$35.00FREE delivery Mon, Sep 21 - Database Internals: A Deep Dive into How Distributed Data Systems Work
Paperback$36.33$36.33FREE delivery Sun, Sep 20 - Fundamentals of Data Engineering: Plan and Build Robust Data Systems
Paperback$40.00$40.00FREE delivery Sep 29 - Oct 14 - PostgreSQL for Absolute Beginners: A Hands-On Guide to SQL, Tables, Queries, Relationships, and Building Your First Database
Paperback$8.90$8.90Delivery Mon, Sep 21 - Django 5 By Example: Build powerful and reliable Python web applications from scratch
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Node.js Design Patterns: Level up your Node.js skills and design production-grade applications using proven techniques
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL
Paperback$46.15$46.15FREE delivery Sep 25 - 30 - Beginning Databases with PostgreSQL: From Novice to Professional (Beginning From Novice to Professional) (Volume 0)
Paperback$62.47$62.47FREE delivery Tue, Sep 22 - Using SQLite: Small. Fast. Reliable. Choose Any Three.
Paperback$38.23$38.23$3.99 delivery Sep 28 - Oct 1 - The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling
Paperback$38.44$38.44FREE delivery Sun, Sep 20 - Mastering PostgreSQL 15: Advanced techniques to build and manage scalable, reliable, and fault-tolerant database applications
Paperback$72.99$72.99FREE delivery Mon, Sep 21 - Extending Power BI with Python and R: Perform advanced analysis using the power of analytical languages
Paperback$36.20$36.20FREE delivery Mon, Sep 21 - MySQL Crash Course: A Hands-on Introduction to Database Development
Paperback$35.12$35.12$3.99 delivery Sep 28 - Oct 2 - Neo4j: The Definitive Guide: Hands-On Recipes for Production-Ready Graph Implementations
Paperback$58.99$58.99FREE delivery Sun, Sep 20 - Data Pipelines Pocket Reference: Moving and Processing Data for Analytics
Paperback$16.93$16.93Delivery Sun, Sep 20
From the Publisher
How does this book differ from the other PostgreSQL books out there?
This book takes readers through the entire PostgreSQL ecosystem. It is divided into several parts, each dedicated to different knowledge levels. It starts with an introduction to PostgreSQL and what it actually is, explaining how to install and run it. Next, the book explores numerous statements and techniques, ranging from beginner to advanced queries. Readers will not only learn how to use but also how to get the best out of a PostgreSQL database.
There's a section dedicated to the administration of a PostgreSQL cluster that focuses on the more advanced side of things, for example, how to spot slow queries or perform regular maintenance on a cluster (including backing up and restoring). At the end of the book, readers will learn how to perform replication of their cluster, both in a physical and logical way. But this is not a book tied to "only" PostgreSQL, it provides hints and tips for several external tools that can be useful in the day-to-day work of a database administrator.
How has the PostgreSQL landscape changed since the last edition was published and what's new in this edition?
The previous edition was based on PostgreSQL 12 and 13, while this edition looks at PostgreSQL 16 (and beyond). We have witnessed 3 years of improvement in PostgreSQL! There are so many changes that we could not possibly list them all here. But partitioning and replication are probably the biggest aspects that have had improvements since the previous edition of the book. The way they work has been greatly enhanced during the intervening years.
Besides a natural upgrade to all the content, and of course the code examples, this edition follows a more streamlined and structured approach. There’s a set of Docker images for all the main sections of the book so that readers can quickly fire up a benchmarking environment and follow along with every code example. We've also added revision questions at the end of each chapter to help readers reinforce their knowledge of concepts at every stage of the book.
What can readers accomplish after completing this book?
Any reader will be able to autonomously install, configure, manage, and develop applications against a PostgreSQL database. Moreover, most of the concepts explained in this book can be applied to other database systems and environments, which will add versatility to their skills and help them succeed in the database field.
Editorial Reviews
About the Author
Luca Ferrari has been passionate about computer science since the Commodore 64 era, and today holds a master's degree (with honors) and a Ph.D. from the University of Modena and Reggio Emilia. He has written several research papers, technical articles, and book chapters. In 2011, he was named an Adjunct Professor by Nipissing University. An avid Unix user, he is a strong advocate of open source, and in his free time, he collaborates with a few projects. He met PostgreSQL back in release 7.3; he was a founder and former president of the Italian PostgreSQL Community (ITPUG). He also talks regularly at technical conferences and events and delivers professional training.
Enrico Pirozzi, EnterpriseDB certified on implementation management and tuning, with a master's in computer science, has been a PostgreSQL DBA since 2003. Based in Italy, he has been providing database advice to clients in industries such as manufacturing and web development for 10 years. He has been training others on PostgreSQL since 2008. Dedicated to open source technology since early in his career, he is a cofounder of the PostgreSQL Italian mailing list, PostgreSQL-it, and of the PostgreSQL Italian community site, PSQL
Product details
- Publisher : Packt Publishing
- Publication date : October 31, 2023
- Edition : 2nd
- Language : English
- Print length : 744 pages
- ISBN-10 : 1837635641
- ISBN-13 : 978-1837635641
- Item Weight : 2.77 pounds
- Dimensions : 7.5 x 1.68 x 9.25 inches
- Best Sellers Rank: #447,312 in Books (See Top 100 in Books)
- #18 in Desktop Database Books
- #200 in Database Storage & Design
- #357 in Databases & Big Data
- Customer Reviews:
About the authors

Enrico Pirozzi has been passionate about computer science since he was a 13-year-old, his first computer was a Commodore 64, and today holds a master's degree from the University of Bologna. He has participated as a speaker at national and international conferences on PostgreSQL. He met PostgreSQL back in release 7.2; he was a co-founder of the first PostgreSQL Italian mailing list and the first Italian PostgreSQL website, he talks at technical conferences and events and delivers professional training at pgtraining.com. Right now he is employed as PostgreSQL Database Administrator at nexteam.it, a funny and intersting place where an hacker can work.

Luca is a Computer Science passionate since the Commodore 64 era, and today holds a Master Degree (with honor) and a PhD from University of Modena and Reggio Emilia.
He has written several research papers, technical articles and book chapters.
In 2011 he was titled Adjunct Professor by University of Nipissing.
An avid Unix user, he is a strong advocate of Open Source, and in his free time he collaborates to a few projects. He met PostgreSQL back to release 7.3; he was a founder and former president of the Italian PostgreSQL Users' Group (ITPUG), he talks regularly at technical conferences and events and does professional training.
In his teen-age he has been a quite proficient archer.
He lives in Italy with his beautiful wife, great son and two (female) cats.





















