Mastering PostgreSQL 9.6

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

Mastering PostgreSQL 9.6

Hans-Jürgen Schönig

5 customer reviews
Master the capabilities of PostgreSQL 9.6 to efficiently manage and maintain your database
Mapt Subscription
FREE
$29.99/m after trial
eBook
$30.80
RRP $43.99
Save 29%
Print + eBook
$54.99
RRP $54.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
$30.80
$54.99
$29.99 p/m after trial
RRP $43.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering PostgreSQL 9.6 Book Cover
Mastering PostgreSQL 9.6
$ 43.99
$ 30.80
PostgreSQL 9.6 High Performance Book Cover
PostgreSQL 9.6 High Performance
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $48.98
Add to Cart

Book Details

ISBN 139781783555352
Paperback416 pages

Book Description

PostgreSQL is an open source database used for handling large datasets (Big Data) and as a JSON document database. It also has applications in the software and web domains. This book will enable you to build better PostgreSQL applications and administer databases more efficiently.

We begin by explaining the advanced database design concepts in PostgreSQL 9.6, 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 and high availability, and much more. You will understand the 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 the advanced database functionalities and will be able to implement advanced administrative tasks with PostgreSQL.

Table of Contents

Chapter 1: PostgreSQL Overview
What is new in PostgreSQL 9.6?
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
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
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 9.6 and handle advanced SQL
  • Make use of the indexing features in PostgreSQL and fine-tune the performance of your queries
  • Work with the stored procedures and manage backup and recovery
  • Master the replication and failover techniques
  • Troubleshoot your PostgreSQL instance for solutions to the 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 9.6?
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
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
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 139781783555352
Paperback416 pages
Read More
From 5 reviews

Read More Reviews

Recommended for You

PostgreSQL 9.6 High Performance Book Cover
PostgreSQL 9.6 High Performance
$ 39.99
$ 28.00
PostgreSQL High Availability Cookbook - Second Edition Book Cover
PostgreSQL High Availability Cookbook - Second Edition
$ 43.99
$ 30.80
PostgreSQL Administration Cookbook, 9.5/9.6 Edition Book Cover
PostgreSQL Administration Cookbook, 9.5/9.6 Edition
$ 47.99
$ 33.60
PostgreSQL High Performance Cookbook Book Cover
PostgreSQL High Performance Cookbook
$ 43.99
$ 30.80
PostgreSQL Development Essentials Book Cover
PostgreSQL Development Essentials
$ 31.99
$ 22.40
Learning PostgreSQL Book Cover
Learning PostgreSQL
$ 43.99
$ 30.80