Book description
Master the capabilities of PostgreSQL 10 to efficiently manage and maintain your database
About This Book
- Your one-stop guide to mastering advanced concepts in PostgreSQL 10 with ease
- Master query optimization, replication, and high availability with PostgreSQL
- Extend the functionalities of your PostgreSQL instance to suit your organizational needs with minimal effort
Who This Book Is For
If you are a PostgreSQL data architect or an administrator and want to understand how to implement advanced functionalities and master complex administrative tasks with PostgreSQL 10, then this book is perfect for you. Prior experience of administrating a PostgreSQL database and a working knowledge of SQL are required to make the best use of this book.
What You Will Learn
- Get to grips with the advanced features of PostgreSQL 10 and handle advanced SQL
- Make use of the indexing features in PostgreSQL and fine-tune the performance of your queries
- Work with stored procedures and manage backup and recovery
- Master replication and failover techniques
- Troubleshoot your PostgreSQL instance for solutions to common and not-so-common problems
- Learn how to migrate your database from MySQL and Oracle to PostgreSQL without any hassle
In Detail
PostgreSQL is an open source database used for handling large datasets (big data) and as a JSON document database. This book highlights the newly introduced features in PostgreSQL 10, and shows you how you can build better PostgreSQL applications, and administer your PostgreSQL database more efficiently. We begin by explaining advanced database design concepts in PostgreSQL 10, along with indexing and query optimization. You will also see how to work with event triggers and perform concurrent transactions and table partitioning, along with exploring SQL and server tuning. We will walk you through implementing advanced administrative tasks such as server maintenance and monitoring, replication, recovery, high availability, and much more. You will understand common and not-so-common troubleshooting problems and how you can overcome them. By the end of this book, you will have an expert-level command of advanced database functionalities and will be able to implement advanced administrative tasks with PostgreSQL 10.
Style and approach
This mastering-level guide delves into the advanced functionalities of PostgreSQL 10
Table of contents
- Preface
- PostgreSQL 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
-
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
- Summary
- Writing Stored Procedures
-
Managing PostgreSQL Security
- Managing network security
- Digging into row-level security - RLS
- Inspecting permissions
- Reassigning objects and dropping users
- Summary
- 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
- 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 searches 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 – WITHIN GROUP clause
- Using the TABLESAMPLE clause
- Using limit/offset
- Using OFFSET
- Using temporal tables
- Matching patterns in time series
- Moving from Oracle to PostgreSQL
- Moving from MySQL or MariaDB to PostgreSQL
- Summary
-
Migrating SQL statements to PostgreSQL
- Other Books You May Enjoy
Product information
- Title: Mastering PostgreSQL 10
- Author(s):
- Release date: January 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788472296
You might also like
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 12
Master PostgreSQL 12 features such as advanced indexing, high availability, monitoring, and much more to efficiently …
book
Learning PostgreSQL 11
Leverage the power of PostgreSQL 11 to build powerful database and data warehousing applications Key Features …
book
PostgreSQL 10 High Performance
Leverage the power of PostgreSQL 10 to design, administer and maintain a high-performance database solution About …