
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.

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 author
OK
Mastering PostgreSQL 13: Build, administer, and maintain database applications efficiently with PostgreSQL 13, 4th Edition 4th ed. Edition
Purchase options and add-ons
Explore expert techniques such as advanced indexing and high availability to build scalable, reliable, and fault-tolerant database applications using PostgreSQL 13
Key Features
- Master advanced PostgreSQL 13 concepts with the help of real-world datasets and examples
- Leverage PostgreSQL's indexing features to fine-tune the performance of your queries
- Extend PostgreSQL's functionalities to suit your organization's needs with minimal effort
Book Description
Thanks to its reliability, robustness, and high performance, PostgreSQL has become one of the most advanced open source databases on the market. This updated fourth edition will help you understand PostgreSQL administration and how to build dynamic database solutions for enterprise apps with the latest release of PostgreSQL, including designing both physical and technical aspects of the system architecture with ease.
Starting with an introduction to the new features in PostgreSQL 13, this book will guide you in building efficient and fault-tolerant PostgreSQL apps. You'll explore advanced PostgreSQL features, such as logical replication, database clusters, performance tuning, advanced indexing, monitoring, and user management, to manage and maintain your database. You'll then work with the PostgreSQL optimizer, configure PostgreSQL for high speed, and move from Oracle to PostgreSQL. The book also covers transactions, locking, and indexes, and shows you how to improve performance with query optimization. You'll also focus on how to manage network security and work with backups and replication while exploring useful PostgreSQL extensions that optimize the performance of large databases.
By the end of this PostgreSQL book, you'll be able to get the most out of your database by executing advanced administrative tasks.
What you will learn
- Get well versed with advanced SQL functions in PostgreSQL 13
- Get to grips with administrative tasks such as log file management and monitoring
- Work with stored procedures and manage backup and recovery
- Employ replication and failover techniques to reduce data loss
- Perform database migration from Oracle to PostgreSQL with ease
- Replicate PostgreSQL database systems to create backups and scale your database
- Manage and improve server security to protect your data
- Troubleshoot your PostgreSQL instance to find solutions to common and not-so-common problems
Who this book is for
This database administration book is for PostgreSQL developers and database administrators and professionals who want to implement advanced functionalities and master complex administrative tasks with PostgreSQL 13. Prior experience in PostgreSQL and familiarity with the basics of database administration will assist with understanding key concepts covered in the book.
Table of Contents
- PostgreSQL 13 Overview
- Understanding Transactions and Locking
- Making Use of Indexes
- Handling Advanced SQL
- Log Files and System Statistics
- Optimizing Queries for Good Performance
- Writing Stored Procedures
- Managing PostgreSQL Security
- Handling Backup and Recovery
- Making Sense of Backups and Replication
- Deciding on Useful Extensions
- Troubleshooting PostgreSQL
- Migrating to PostgreSQL
- ISBN-101800567499
- ISBN-13978-1800567498
- Edition4th ed.
- PublisherPackt Publishing
- Publication dateNovember 13, 2020
- LanguageEnglish
- Dimensions9.25 x 7.52 x 0.99 inches
- Print length476 pages
There is a newer edition of this item:
Frequently bought together

Similar items that may deliver to you quickly
Editorial Reviews
About the Author
Hans-Jürgen Schönig has 18 years' experience with PostgreSQL. He is the CEO of a PostgreSQL consulting and support company called Cybertec PostgreSQL International GmbH. It has successfully served countless customers around the globe. Before founding Cybertec PostgreSQL International GmbH in 2000, he worked as a database developer at a private research company that focused on the Austrian labor market, where he primarily worked on data mining and forecast models. He has also written several books about PostgreSQL.
Product details
- Publisher : Packt Publishing; 4th ed. edition (November 13, 2020)
- Language : English
- Paperback : 476 pages
- ISBN-10 : 1800567499
- ISBN-13 : 978-1800567498
- Item Weight : 1.8 pounds
- Dimensions : 9.25 x 7.52 x 0.99 inches
- Best Sellers Rank: #1,964,691 in Books (See Top 100 in Books)
- #398 in Data Warehousing (Books)
- #576 in Database Storage & Design
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews right now. Please try again later.
- Reviewed in the United States on December 29, 2023IRS uses that version
- Reviewed in the United States on March 26, 2021This book des not include any introductory contents including 'What is Postgresql', 'Installing PostgreSQL', 'Getting started', and so on.
This is a book for PostgreSQL DBA and application developer with these introductory and intermediate level experience and knowledge.
This book does not contain any advanced information about general SQL usage. Instead, this book is full of information about unique feature of PostgreSQL, not only for the latest version but also for all the recent versions, covering many important TIPS for DBA work, database design and application development.
First chapter covers major new features with version 13. Readers may need to learn basics of underlyning techniques such as B-Tree, WAL and VACUUM, which is available from many sources online.
Important topics in the book include:
1) Locking and use of SELECT FOR SHARE/UPDATE,
2) Vacuum
3) Index management and query plan
4) Clustering
5) Adding new index
6) GiST and GIN index basics
7) Full text search
8) File configuration and log
9) Database monitoring and inspection
10) PostgreSQL configuration
11) Inheritance and partitioning
12) Parallel query
13) Stored procedure using various languages including PL/PgSQL, PL/Python, C-language using SPI,
14) Security, various authentication and permission setups,
15) Backup and recovery
16) Physical and logical replication
17) Migration to PostgreSQL
These topics cover most of the important PostgreSQL-specific behavior and functionality needed for advanced usage.
These topics are a very good introduction for deeper dive. Codes used in this book are provided online and are simple enough to run by readers. It must be a great help to learn.
One more topic I'd like to see is JSON and JSONB. PostgreSQL has native JSON features with excellent performance, beating NoSQLs. Many readers may want to learn this more.
Top reviews from other countries
- Tim SmithReviewed in the United Kingdom on March 29, 2022
5.0 out of 5 stars A really excellent book for getting into PostgreSQL
I genuinely don't know why some of the other reviews have had poor experiences with this book. It was perfect for what I needed, which was exposure to all parts of PostgreSQL. It methodically takes you through the ins and outs. It is well written and explains things clearly.
- AndrewReviewed in Australia on January 23, 2021
2.0 out of 5 stars Didn't meet expectations for a 'mastering' book - almost an ad for author's business
I bought this book in the expectation that it would give me a much deeper understanding of PostgreSQL beyond what documentation would give me - as the name suggested it would. But it really didn't live up to expectations - it is a weird mixture of trivial observations that anyone who has worked with PostgreSQL a bit, and recitations of selected obscure areas of PostgreSQL that someone could easily look up if they needed it without really giving any insight into how they are useful.
Particularly grating was how blatantly the author advertises his own business and other book - often to the detriment of the quality of the book (and especially to the credibility of it, when they are advising which third-party tools to use and they have a dog in the race which they are pushing in the book). Often the strategy of the author seems to be to keep the reader in the dark about how to solve problems and hint that they could engage the author's company (e.g. "Even if it is broken, our PostgreSQL support company might need it to track down the reason for the crash." - with nothing about how to do it yourself).
Particularly disappointing was the quality of the replication chapter - replication is an area I particularly wanted to understand deeper, since it is one of the hardest parts of getting HA and PostgreSQL right. The author opens the chapter with an admission that it is "only a short introduction" to replication and pushing people to another of his books - but this candour is of course only after someone has already purchased the book.
The book doesn't mention many other parts of the ecosystem at all - pgbackrest, Patroni, barman, etc... that someone who has mastered PostgreSQL would know.
Overall, if I knew what I know now, I wouldn't have purchased it, and wouldn't recommend it.
- Johnson J.Reviewed in Germany on December 21, 2020
2.0 out of 5 stars Badly written - No recommendation to get profound knowledge or examples of using PostgreSQL
The book describes concepts associated to relational databases and sets them into context of PostgreSQL (version 13). Unfortunately, the author is not able to draw a red line and focus on key aspects. In many areas the book remains superficial and it is better to read the online documentation of PostgreSQL instead. Additionally, the book does not seem to be completely updated to version 13 of PostgreSQL. I cannot recommend it and would not buy it again.
Here is an example of what I mean with missing a red line and omitting key aspects. In section 7 (Writing Stored Procedures), the reader would expect a sound introduction followed by details in procedures (maybe routines in general) and procedural programming as supported by PostgreSQL. The section begins with page 292 (position 5511 in kindle). A description of procedural syntax, however, is not introduced before page 321 (position 5967 in kindle). From there to the end of the section (which is on page 342 or position 6275 in kindle), the reader is served mostly simplistic and no interesting procedures and functions. For the whole sections, the author is not capable to illustrate the difference between function and procedures (neither in the description nor in terms of subsections). The beginning of the section is promising but the author starts to mix other concepts and topics instead of explaining what would be relevant here. For example the topic of how to handle quotes turns into a discussion about SQL injection – while this is an important topic of its own, again neither handling quotes nor SQL injection is covered in a sense that you could have a real take away. In that specific example the auther introduces the quote_literal function calls it important (to prevent the SQL injection) but does not provide or explain by example how to use it in a procedure. This is a pattern you will find throughout the book.
Good about the book is, that most code examples are executable (that is why I rate it with two instead of one star). However, the layout is not fully consistent and system responses are sometimes a bit creepy in layout (at least with the kindle version). Referencing code could be done better as well. While I believe that the author possesses profound knowledge about PostgreSQL, he is just not a good author and should not write books – sorry!