Troubleshooting PostgreSQL

Intercept problems and challenges typically faced by PostgreSQL database administrators with the best troubleshooting techniques
Preview in Mapt
Code Files

Troubleshooting PostgreSQL

Hans-Jürgen Schönig

1 customer reviews
Intercept problems and challenges typically faced by PostgreSQL database administrators with the best troubleshooting techniques
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.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.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Troubleshooting PostgreSQL Book Cover
Troubleshooting PostgreSQL
$ 23.99
$ 16.80
Mastering PostgreSQL 10 Book Cover
Mastering PostgreSQL 10
$ 43.99
$ 30.80
Buy 2 for $34.30
Save $33.68
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783555314
Paperback164 pages

Book Description

PostgreSQL is a powerful, open source, object-relational database system. PostgreSQL offers many advantages for your company or business over other database systems.

This book is your practical guide to understanding the advanced techniques used to handle complex data and methods to solve issues that you might face while working with PostgreSQL. We will start with discussing the issues that arise at the time of setting up PostgreSQL. The next step will be to decide which data types will be most suitable to the task at hand and optimize performance using the right ones.

We will understand how to deal with transaction locks, fuzzy matches, cursors, joins, and so on. Know the warning signs to look for, and how to avoid the most common issues before they even happen. In addition to that, specific high-level topics such as replication and Point-In-Time-Recovery will be discussed. The entire book is based on PostgreSQL 9.4 and contains up-to-date information.

Table of Contents

Chapter 1: Installing PostgreSQL
Deciding on a version number
Methods of installing PostgreSQL
Memory and kernel issues
Adding checksums to a database instance
Preventing encoding-related issues
Avoiding template pollution
Summary
Chapter 2: Creating Data Structures
Grouping columns the right way
Deciding on data types and structure
Deciding on normalization
Summary
Chapter 3: Handling Indexes
Understanding indexes in PostgreSQL
Avoiding trouble with indexes
Solving common problems
Handling LIKE queries
Finding good matches
Fixing full-text search
Summary
Chapter 4: Reading Data Efficiently and Correctly
Understanding the power of NULL
Fixing disastrous joins
Reading large amounts of data
Understanding prepared queries
Summary
Chapter 5: Getting Transactions and Locking Right
The PostgreSQL transaction model
Transaction isolation
Inspecting locks
Summary
Chapter 6: Writing Proper Procedures
Choosing the right language
Managing procedures and transactions
Procedures and indexing
Understanding memory
Summary
Chapter 7: PostgreSQL Monitoring
Checking the overall database behavior
Detecting I/O bottlenecks
Checking for conflicts
Chasing down slow queries
Inspecting internal information
Integrating with external tools
Alternative tools
Summary
Chapter 8: Fixing Backups and Replication
Using pg_dump
Managing point-in-time recovery
Making use of asynchronous replication
Switching to synchronous replication
Handling timelines
Summary
Chapter 9: Handling Hardware and Software Disasters
Checksums – preventing silent corruption
Zeroing out damaged pages
Dealing with index corruption
Dumping individual pages
Resetting the transaction log
Power-out-related issues
Summary
Chapter 10: A Standard Approach to Troubleshooting
Getting an overview of the problem
Attacking low performance
Fixing common replication issues
Summary

What You Will Learn

  • Detect bottlenecks caused by missing indexes
  • Optimize your data structures for optimal memory footprint
  • Write better, performance-optimized stored procedures
  • Monitor PostgreSQL in an efficient way and deal with system corruption and filesystem issues
  • Detect replication-related problems and make replication more failsafe
  • Fix missing indexes and problems arising out of transaction locking
  • Find slow queries and optimize your system for speed

Authors

Table of Contents

Chapter 1: Installing PostgreSQL
Deciding on a version number
Methods of installing PostgreSQL
Memory and kernel issues
Adding checksums to a database instance
Preventing encoding-related issues
Avoiding template pollution
Summary
Chapter 2: Creating Data Structures
Grouping columns the right way
Deciding on data types and structure
Deciding on normalization
Summary
Chapter 3: Handling Indexes
Understanding indexes in PostgreSQL
Avoiding trouble with indexes
Solving common problems
Handling LIKE queries
Finding good matches
Fixing full-text search
Summary
Chapter 4: Reading Data Efficiently and Correctly
Understanding the power of NULL
Fixing disastrous joins
Reading large amounts of data
Understanding prepared queries
Summary
Chapter 5: Getting Transactions and Locking Right
The PostgreSQL transaction model
Transaction isolation
Inspecting locks
Summary
Chapter 6: Writing Proper Procedures
Choosing the right language
Managing procedures and transactions
Procedures and indexing
Understanding memory
Summary
Chapter 7: PostgreSQL Monitoring
Checking the overall database behavior
Detecting I/O bottlenecks
Checking for conflicts
Chasing down slow queries
Inspecting internal information
Integrating with external tools
Alternative tools
Summary
Chapter 8: Fixing Backups and Replication
Using pg_dump
Managing point-in-time recovery
Making use of asynchronous replication
Switching to synchronous replication
Handling timelines
Summary
Chapter 9: Handling Hardware and Software Disasters
Checksums – preventing silent corruption
Zeroing out damaged pages
Dealing with index corruption
Dumping individual pages
Resetting the transaction log
Power-out-related issues
Summary
Chapter 10: A Standard Approach to Troubleshooting
Getting an overview of the problem
Attacking low performance
Fixing common replication issues
Summary

Book Details

ISBN 139781783555314
Paperback164 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

PostgreSQL 9.0 High Performance Book Cover
PostgreSQL 9.0 High Performance
$ 29.99
$ 21.00
PostgreSQL for Data Architects Book Cover
PostgreSQL for Data Architects
$ 39.99
$ 28.00
PostgreSQL 9 Admin Cookbook Book Cover
PostgreSQL 9 Admin Cookbook
$ 29.99
$ 21.00
PostgreSQL Server Programming Book Cover
PostgreSQL Server Programming
$ 29.99
$ 6.00
PostgreSQL Replication Book Cover
PostgreSQL Replication
$ 29.99
$ 21.00
PostgreSQL 9 High Availability Cookbook Book Cover
PostgreSQL 9 High Availability Cookbook
$ 26.99
$ 18.90