Book Image

PostgreSQL Administration Essentials

Book Image

PostgreSQL Administration Essentials

Overview of this book

Table of Contents (14 chapters)

Preface

PostgreSQL Administration Essentials... that sounds interesting! I think these were the first things I had in my mind when I was confronted with the idea of writing one more book on PostgreSQL. And, voila, here I am writing those first lines of this new book on PostgreSQL. My hope is that this little book will serve you well—providing help whenever it is needed.

Since I started my career as a PostgreSQL consultant (www.postgresql-support.de), there has always been a demand for a short, compact book on PostgreSQL administration. No big bloated thing but a book dealing exclusively with what people really need in their daily life. A small thing people can have on their tables all the time and which can be used for everyday administration problems. I am glad that I got the chance to take a shot on a book like that.

What this book covers

Chapter 1, Installing PostgreSQL, introduces you to the installation process and helps in learning how to install binaries, as well as, to compile PostgreSQL from source.

Chapter 2, Indexing and Performance Tuning, introduces you to indexes. This chapter is entirely dedicated to indexes, as well as, to performance-related issues. Indexes are a corner stone when it comes to performance and; therefore, a lot of focus is on indexes.

Chapter 3, Users and Permissions, introduces you to the security system. The basic concepts of the PostgreSQL security system, as well as, some advanced concepts are outlined in this chapter.

Chapter 4, Managing Logfiles, covers the managing of logfiles.

Chapter 5, Backup and Recovery, outlines how textual backups can be created and restored, as saving and restoring data is an essential task of every system administrator.

Chapter 6, Handling Replication and Improving Performance, covers various flavors of replication, as well as, PITR. Synchronous, as well as, asynchronous replications are also covered in this chapter.

Chapter 7, Monitoring PostgreSQL, covers monitoring to make sure that your systems are available and productive. To make sure that PostgreSQL stays up and running, monitoring is an important topic.

What you need for this book

The entire book has been written on a Linux system, as well as, on Mac OS X. Some parts are Unix-specific. However, the biggest part of the book will also work just fine with Microsoft Windows.

So, all you will need is Windows or some Unix system to follow the given examples outlining all the technical issues subjected to this book.

Who this book is for

This book has been written for those who want to administer a PostgreSQL database fast and efficiently. It contains valuable information to make your life as easy as possible. During your daily work, this little book will help you to quickly detect problems, as well as bottlenecks.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Note that we use -l here for simplicity reasons."

Any command-line input or output is written as follows:

pg_ctl -D /data -l /dev/null start

New terms and important words are shown in bold.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.