Mastering PostgreSQL 10

Master the capabilities of PostgreSQL 10 to efficiently manage and maintain your database
Preview in Mapt
Code Files

Mastering PostgreSQL 10

Hans-Jürgen Schönig

2 customer reviews
Master the capabilities of PostgreSQL 10 to efficiently manage and maintain your database
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.00
RRP $31.99
Save 49%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.00
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering PostgreSQL 10 Book Cover
Mastering PostgreSQL 10
$ 31.99
$ 16.00
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 12.00
Buy 2 for $28.00
Save $27.98
Add to Cart

Book Details

ISBN 139781788472296
Paperback428 pages

Book Description

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.

Table of Contents

Chapter 1: PostgreSQL Overview
What is new in PostgreSQL 10.0?
Introducing SCRAM-SHA-256
Introducing quorum COMMIT
Introducing ICU encodings
Summary
Chapter 2: Understanding Transactions and Locking
Working with PostgreSQL transactions
Understanding basic locking
Making use of FOR SHARE and FOR UPDATE
Understanding transaction isolation levels
Observing deadlocks and similar issues
Utilizing advisory locks
Optimizing storage and managing cleanup
Summary
Chapter 3: Making Use of Indexes
Understanding simple queries and the cost model
Improving speed using clustered tables
Understanding additional b-tree features
Introducing operator classes
Understanding PostgreSQL index types
Achieving better answers with fuzzy searching
Understanding full-text search - FTS
Summary
Chapter 4: Handling Advanced SQL
Introducing grouping sets
Making use of ordered sets
Understanding hypothetical aggregates
Utilizing windowing functions and analytics
Writing your own aggregates
Summary
Chapter 5: Log Files and System Statistics
Gathering runtime statistics
Creating log files
Summary
Chapter 6: 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
Chapter 7: Writing Stored Procedures
Understanding stored procedure languages
Understanding various stored procedure languages
Improving stored procedure performance
Using stored procedures
Summary
Chapter 8: Managing PostgreSQL Security
Managing network security
Digging into row-level security - RLS
Inspecting permissions
Reassigning objects and dropping users
Summary
Chapter 9: Handling Backup and Recovery
Performing simple dumps
Handling various formats
Replaying backups
Handling global data
Summary
Chapter 10: Making Sense of Backups and Replication
Understanding the transaction log
Transaction log archiving and recovery
Setting up asynchronous replication
Upgrading to synchronous replication
Making use of replication slots
Making use of CREATE PUBLICATION and CREATE SUBSCRIPTION
Summary
Chapter 11: Deciding on Useful Extensions
Understanding how extensions work
Making use of contrib modules
Other useful extensions
Summary
Chapter 12: Troubleshooting PostgreSQL
Approaching an unknown database
Inspecting pg_stat_activity
Checking for slow queries
Inspecting the log
Checking for missing indexes
Checking for memory and I/O
Understanding noteworthy error scenarios
Summary
Chapter 13: Migrating to PostgreSQL
Migrating SQL statements to PostgreSQL
Moving from Oracle to PostgreSQL
Moving from MySQL or MariaDB to PostgreSQL
Summary

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

Authors

Table of Contents

Chapter 1: PostgreSQL Overview
What is new in PostgreSQL 10.0?
Introducing SCRAM-SHA-256
Introducing quorum COMMIT
Introducing ICU encodings
Summary
Chapter 2: Understanding Transactions and Locking
Working with PostgreSQL transactions
Understanding basic locking
Making use of FOR SHARE and FOR UPDATE
Understanding transaction isolation levels
Observing deadlocks and similar issues
Utilizing advisory locks
Optimizing storage and managing cleanup
Summary
Chapter 3: Making Use of Indexes
Understanding simple queries and the cost model
Improving speed using clustered tables
Understanding additional b-tree features
Introducing operator classes
Understanding PostgreSQL index types
Achieving better answers with fuzzy searching
Understanding full-text search - FTS
Summary
Chapter 4: Handling Advanced SQL
Introducing grouping sets
Making use of ordered sets
Understanding hypothetical aggregates
Utilizing windowing functions and analytics
Writing your own aggregates
Summary
Chapter 5: Log Files and System Statistics
Gathering runtime statistics
Creating log files
Summary
Chapter 6: 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
Chapter 7: Writing Stored Procedures
Understanding stored procedure languages
Understanding various stored procedure languages
Improving stored procedure performance
Using stored procedures
Summary
Chapter 8: Managing PostgreSQL Security
Managing network security
Digging into row-level security - RLS
Inspecting permissions
Reassigning objects and dropping users
Summary
Chapter 9: Handling Backup and Recovery
Performing simple dumps
Handling various formats
Replaying backups
Handling global data
Summary
Chapter 10: Making Sense of Backups and Replication
Understanding the transaction log
Transaction log archiving and recovery
Setting up asynchronous replication
Upgrading to synchronous replication
Making use of replication slots
Making use of CREATE PUBLICATION and CREATE SUBSCRIPTION
Summary
Chapter 11: Deciding on Useful Extensions
Understanding how extensions work
Making use of contrib modules
Other useful extensions
Summary
Chapter 12: Troubleshooting PostgreSQL
Approaching an unknown database
Inspecting pg_stat_activity
Checking for slow queries
Inspecting the log
Checking for missing indexes
Checking for memory and I/O
Understanding noteworthy error scenarios
Summary
Chapter 13: Migrating to PostgreSQL
Migrating SQL statements to PostgreSQL
Moving from Oracle to PostgreSQL
Moving from MySQL or MariaDB to PostgreSQL
Summary

Book Details

ISBN 139781788472296
Paperback428 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Understanding Software Book Cover
Understanding Software
$ 23.99
$ 12.00
Mastering Linux Security and Hardening Book Cover
Mastering Linux Security and Hardening
$ 35.99
$ 18.00
Java EE 8 High Performance Book Cover
Java EE 8 High Performance
$ 39.99
$ 20.00
Nginx HTTP Server - Fourth Edition Book Cover
Nginx HTTP Server - Fourth Edition
$ 35.99
$ 18.00
Reactive Programming in Kotlin Book Cover
Reactive Programming in Kotlin
$ 35.99
$ 18.00
Microservice Patterns and Best Practices Book Cover
Microservice Patterns and Best Practices
$ 35.99
$ 18.00