Book description
Master PostgreSQL 12 features such as advanced indexing, high availability, monitoring, and much more to efficiently manage and maintain your database
Key Features
- Grasp advanced PostgreSQL 12 concepts with real-world examples and sample datasets
- Explore query parallelism, data replication, database administration, and more
- Extend PostgreSQL functionalities to suit your organization's needs with minimal effort
Book Description
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.
What you will learn
- Understand the advanced SQL functions in PostgreSQL 12
- Use indexing features in PostgreSQL to fine-tune the performance of queries
- Work with stored procedures and manage backup and recovery
- Master replication and failover techniques to reduce data loss
- Replicate PostgreSQL database systems to create backups and to scale your database
- Manage and improve the security of your server to protect your data
- Troubleshoot your PostgreSQL instance for solutions to common and not-so-common problems
Who this book is for
This book is for PostgreSQL developers and administrators and database professionals who want to implement advanced functionalities and master complex administrative tasks with PostgreSQL 12. Prior exposure to PostgreSQL as well as familiarity with the basics of database administration is expected.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Section 1: Basic Overview
- PostgreSQL 12 Overview
- Understanding Transactions and Locking
- Section 2: Advanced Concepts
- 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
- Assessment
- Other Books You May Enjoy
Product information
- Title: Mastering PostgreSQL 12
- Author(s):
- Release date: November 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838988821
You might also like
book
Mastering PostgreSQL 10
Master the capabilities of PostgreSQL 10 to efficiently manage and maintain your database About This Book …
book
Mastering PostgreSQL 11 - Second Edition
Master the capabilities of PostgreSQL 11 to efficiently manage and maintain your database Key Features Master …
book
Mastering PostgreSQL 13 - Fourth Edition
Explore expert techniques such as advanced indexing and high availability to build scalable, reliable, and fault-tolerant …
book
Learning PostgreSQL 11
Leverage the power of PostgreSQL 11 to build powerful database and data warehousing applications Key Features …