Book Image

Mastering PostgreSQL 12 - Third Edition

By : Hans-Jürgen Schönig
Book Image

Mastering PostgreSQL 12 - Third Edition

By: Hans-Jürgen Schönig

Overview of this book

Thanks to its reliability, robustness, and high performance, PostgreSQL has become the most advanced open source database on the market. This third edition of Mastering PostgreSQL helps you build dynamic database solutions for enterprise applications using the latest release of PostgreSQL, which enables database analysts to design both physical and technical aspects of system architecture with ease. Starting with an introduction to the newly released features in PostgreSQL 12, this book will help you build efficient and fault-tolerant PostgreSQL applications. You’ll thoroughly examine the advanced features of PostgreSQL, including logical replication, database clusters, performance tuning, monitoring, and user management. You’ll also work with the PostgreSQL optimizer, configure PostgreSQL for high speed, and understand how to move from Oracle to PostgreSQL. As you progress through the chapters, you’ll cover transactions, locking, indexes, and how to optimize queries for improved performance. Additionally, you’ll learn how to manage network security and explore backups and replications while understanding useful PostgreSQL extensions to help you in optimizing 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 implementing advanced administrative tasks effortlessly.
Table of Contents (18 chapters)
Free Chapter
1
Section 1: Basic Overview
4
Section 2: Advanced Concepts

What this book covers

Chapter 1, PostgreSQL 12 Overviewprovides an overview of PostgreSQL and its features. You will learn about the new functionalities available in PostgreSQL 12.

Chapter 2, Understanding Transactions and Lockingcovers one of the most important aspects of any database system: proper database work is usually not possible without the existence of transactions. Understanding transactions and locking is vital to performance, as well as professional work.

Chapter 3, Making Use of Indexescovers everything you need to know about indexes. Indexes are key to performance and are therefore an important cornerstone if you want a good user experience and high throughput. All the important aspects of indexing will be covered in this chapter.

Chapter 4, Handling Advanced SQLintroduces you to some of the most important concepts of modern SQL. You will learn about windowing functions as well as other important current elements of SQL.

Chapter 5, Log Files and System Statisticsguides you through administrative tasks such as log file management and monitoring. You will learn how to inspect your servers and extract runtime information from PostgreSQL. 

Chapter 6, Optimizing Queries for Good Performancetells you everything you need to know about good PostgreSQL performance. The chapter covers SQL tuning and information about memory management.

Chapter 7, Writing Stored Proceduresteaches you some of the advanced topics related to server-side code. In this chapter, the most important server-side programming languages are covered and important aspects are pointed out.

Chapter 8, Managing PostgreSQL Securityis designed to help you improve the security of your server. The chapter features everything from user management to Row-Level Security (RLS). Information about encryption is also included.

Chapter 9, Handling Backup and Recoveryis all about backups and data recovery. You will learn how to back up your data, which will enable you to restore things in the event of a disaster.

Chapter 10, Making Sense of Backups and Replicationis all about redundancy. You will learn how to asynchronously and synchronously replicate PostgreSQL database systems. All modern features are covered as extensively as possible.

Chapter 11, Deciding on Useful Extensionsdescribes the widely used modules that add more functionality to PostgreSQL. You will also learn about the most common extensions.

Chapter 12, Troubleshooting PostgreSQLoffers a systematic approach to fixing problems in PostgreSQL. It will enable you to spot common problems and approach them in an organized way.

Chapter 13, Migrating to PostgreSQLis the final chapter of this book and it shows you how to migrate from commercial databases to PostgreSQL. This chapter covers the most important databases migrated these days.