Book description
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
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- PostgreSQL 13 Overview
- Understanding Transactions and Locking
- Making Use of Indexes
-
Handling Advanced SQL
- Introducing grouping sets
- Making use of ordered sets
- Understanding hypothetical aggregates
- Utilizing windowing functions and analytics
- Writing your own aggregates
- Summary
-
Log Files and System Statistics
-
Gathering runtime statistics
- Working with PostgreSQL system views
- Creating log files
- Summary
- Questions
-
Gathering runtime statistics
-
Optimizing Queries for Good Performance
- Learning what the optimizer does
- Understanding execution plans
- Understanding and fixing joins
- Enabling and disabling optimizer settings
- Partitioning data
- Adjusting parameters for good query performance
- Making use of parallel queries
- Introducing JIT compilation
- Summary
- Writing Stored Procedures
-
Managing PostgreSQL Security
- Managing network security
- Digging into RLS
- Inspecting permissions
- Reassigning objects and dropping users
- Summary
- Questions
- Handling Backup and Recovery
- Making Sense of Backups and Replication
-
Deciding on Useful Extensions
- Understanding how extensions work
-
Making use of contrib modules
- Using the adminpack module
- Applying bloom filters
- Deploying btree_gist and btree_gin
- dblink – considering phasing out
- Fetching files with file_fdw
- Inspecting storage using pageinspect
- Investigating caching with pg_buffercache
- Encrypting data with pgcrypto
- Prewarming caches with pg_prewarm
- Inspecting performance with pg_stat_statements
- Inspecting storage with pgstattuple
- Fuzzy searching with pg_trgm
- Connecting to remote servers using postgres_fdw
- Other useful extensions
- Summary
- Troubleshooting PostgreSQL
-
Migrating to PostgreSQL
-
Migrating SQL statements to PostgreSQL
- Using lateral joins
- Using grouping sets
- Using the WITH clause – common table expressions
- Using the WITH RECURSIVE clause
- Using the FILTER clause
- Using windowing functions
- Using ordered sets – the WITHIN GROUP clause
- Using the TABLESAMPLE clause
- Using limit/offset
- Using the OFFSET clause
- Using temporal tables
- Matching patterns in time series
- Moving from Oracle to PostgreSQL
- Summary
-
Migrating SQL statements to PostgreSQL
- Other Books You May Enjoy
Product information
- Title: Mastering PostgreSQL 13 - Fourth Edition
- Author(s):
- Release date: November 2020
- Publisher(s): Packt Publishing
- ISBN: 9781800567498
You might also like
book
Mastering PostgreSQL 12
Master PostgreSQL 12 features such as advanced indexing, high availability, monitoring, and much more to efficiently …
book
PostgreSQL 13 Cookbook
Get to grips with building reliable, scalable, and maintainable database solutions for enterprises and production databases …
book
PostgreSQL High Performance Cookbook
Get to know effective ways to improve PostgreSQL’s performance and master query optimization, and database monitoring. …
book
PostgreSQL 14 Administration Cookbook
Administer, monitor, and replicate your PostgreSQL 14 database for efficient database management and maintenance Key Features …