Get to grips with building reliable, scalable, and maintainable database solutions for enterprises and production databases
▶What You Will Learn
-Understand logical and physical backups in Postgres
-Demonstrate the different types of replication methods possible with PostgreSQL today
-Set up a high availability cluster that provides seamless automatic failover for applications
-Secure a PostgreSQL encryption through authentication, authorization, and auditing
-Analyze the live and historic activity of a PostgreSQL server
-Understand how to monitor critical services in Postgres 13
-Manage maintenance activities and performance tuning of a PostgreSQL cluster
▶Key Features
-Implement PostgreSQL 13 features to perform end-to-end modern database management
-Design, manage, and build enterprise database solutions using a unique recipe-based approach
-Solve common and not-so-common challenges faced while working to achieve optimal database performance
▶Who This Book Is For
This PostgreSQL book is for database architects, database developers and administrators, or anyone who wants to become well-versed with PostgreSQL 13 features to plan, manage, and design efficient database solutions. Prior experience with the PostgreSQL database and SQL language is expected.
▶What this book covers
- Chapter 1, Cluster Management Fundamentals, starts by showing how to install PostgreSQL 13 and initializing a data directory. We will then discuss pg_ctl and how it can be used to start and stop a PostgreSQL cluster.
- Chapter 2, Cluster Management Techniques, helps you get familiar with some of the important routine tasks in PostgreSQL.
- Chapter 3, Backup and Recovery, shows you several methods available to back up and restore a PostgreSQL database.
- Chapter 4, Advanced Replication Techniques, teaches you how to configure both streaming and logical replication, and you'll learn about some more crucial tasks in a production database environment.
- Chapter 5, High Availability and Automatic Failover, discusses one of the most heavily adopted open source high-availability tools available, called Patroni. It can be used to set up automatic failover. We shall learn how it can be configured and will also discuss the advantages and disadvantages of using it for high availability.
- Chapter 6, Connection Pooling and Load Balancing, discusses pgBouncer, which is a widely implemented, lightweight external pooler.
- Chapter 7, Securing through Authentication, teaches you how to secure PostgreSQL encryption through authentication, authorization, and auditing. You will also see how to encrypt connections over the wire and also at rest using SSL. We will also look at some extensions for performing auditing in PostgreSQL
- Chapter 8, Logging and Analyzing PostgreSQL Servers, has been designed to let admins know of the available options in PostgreSQL to enable the logging of certain important activities and to help admins/developers get familiar with some views, extensions, and tools to analyze live and historic activity in Postgres catalogs and log files.
- Chapter 9, Critical Services Monitoring, shows how we can set up the monitoring of servers using Grafana and Prometheus.
- Chapter 10, Extensions and Performance Tuning, shows us what extensions are and examines some of the most commonly used extensions for routine maintenance activities. We will also discuss some of the extensions that are helpful in many of the more important activities performed by an administrator or developer.
- Chapter 11, Upgrades and Patches, shows us the various upgrade paths for PostgreSQL and how to implement them.