Muutke küpsiste eelistusi

PostgreSQL Configuration: Best Practices for Performance and Security 1st ed. [Pehme köide]

  • Formaat: Paperback / softback, 226 pages, kõrgus x laius: 235x155 mm, kaal: 454 g, 12 Illustrations, black and white; XVIII, 226 p. 12 illus., 1 Paperback / softback
  • Ilmumisaeg: 17-Mar-2020
  • Kirjastus: APress
  • ISBN-10: 148425662X
  • ISBN-13: 9781484256626
Teised raamatud teemal:
  • Pehme köide
  • Hind: 44,06 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 51,84 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 226 pages, kõrgus x laius: 235x155 mm, kaal: 454 g, 12 Illustrations, black and white; XVIII, 226 p. 12 illus., 1 Paperback / softback
  • Ilmumisaeg: 17-Mar-2020
  • Kirjastus: APress
  • ISBN-10: 148425662X
  • ISBN-13: 9781484256626
Teised raamatud teemal:

Obtain all the skills you need to configure and manage a PostgreSQL database. In this book you will begin by installing and configuring PostgreSQL on a server by focusing on system-level parameter settings before installation. You will also look at key post-installation steps to avoid issues in the future. The basic configuration of PostgreSQL is tuned for compatibility rather than performance. Keeping this in mind, you will fine-tune your PostgreSQL parameters based on your environment and application behavior. You will then get tips to improve database monitoring and maintenance followed by database security for handling sensitive data in PostgreSQL. 

Every system containing valuable data needs to be backed-up regularly. PostgreSQL follows a simple back-up procedure and provides fundamental approaches to back up your data. You will go through these approaches and choose the right one based on your environment. Running your application with limited resources can be tricky. To achieve this you will implement a pooling mechanism for your PostgreSQL instances to connect to other databases. Finally, you will take a look at some basic errors faced while working with PostgreSQL and learn to resolve them in the quickest manner. 

What You Will Learn

  • Configure PostgreSQL for performance
  • Monitor and maintain PostgreSQL instances
  • Implement a backup strategy for your data
  • Resolve errors faced while using PostgreSQL
Who This Book Is For

Readers with basic knowledge of PostgreSQL who wish to implement key solutions based on their environment.
About the Author ix
About the Technical Reviewer xi
Chapter 1 Best Ways to Install PostgreSQL
1(28)
Information Needed for Installation
2(3)
Types of Installations
5(12)
Source Installation
6(7)
Binary Installation
13(1)
RPM Installation
14(2)
One-Click Installers for Linux, Windows, and Mac
16(1)
Plan for the Installation
17(2)
General Recommendations for PostgreSQL Disk/Storage
19(6)
Choose the Right Location and Ownership
20(1)
One Cluster and Database per Server
20(1)
FileSystem Layouts
21(4)
Tuning OS Parameters
25(3)
Before Installation
25(2)
After Installation
27(1)
Troubleshooting Installation Issues
28(1)
Summary
28(1)
Chapter 2 Configure Your Database for Better Performance
29(32)
Initial Steps After Installation
29(6)
For PostgreSQL Developers
30(2)
For Administrators
32(3)
Configuration Files and Recommendations
35(19)
Postgresql.conf
35(1)
Pg_hba.conf
36(2)
Pg_ident.conf
38(1)
Parameter Recommendations
39(15)
OS Recommendations
54(5)
Why Allow Overcommits?
55(1)
Overcommit Strategy 0
55(1)
Overcommit Strategy 1
55(1)
Overcommit Strategy 2
56(2)
Hugepages
58(1)
Summary
59(2)
Chapter 3 User Management and Securing Databases
61(32)
Information That You Need to Know
62(4)
Security Mechanisms
66(25)
Authentication in HBA
67(6)
ACLs
73(7)
RLS (Row Level Security)
80(2)
SSL
82(2)
Event Trigger
84(2)
Auditing
86(1)
Monitoring Roles
87(1)
Encryption and PCI
88(2)
Replication
90(1)
PL Trusted vs. Untrusted
91(1)
High Security and Encryption Guidelines
91(1)
Summary
92(1)
Chapter 4 Backup and Restore Best Practices
93(18)
Purpose of Backing Up a Database
93(1)
Gather Information to Set Up a Backup Strategy
94(2)
Backup Types
96(12)
Logical Backups
96(2)
Physical Backups
98(8)
Restore Your Database
106(1)
Point-In-Time-Recovery
107(1)
Design a Backup Strategy
108(1)
Daily Backups
109(1)
Weekly Backups
109(1)
Monthly Backups
109(1)
Yearly Backup
109(1)
Monitoring Backups
109(1)
Summary
110(1)
Chapter 5 Enable Logging of Your Database and Monitoring PostgreSQL Instances
111(20)
Why/When/How to Log
111(9)
Parameters to Set for Logging
112(8)
Monitoring Databases
120(10)
Levels of Monitoring
120(1)
OS Level Monitoring
121(2)
Database Level Monitoring
123(2)
Monitoring/Reporting Tools
125(5)
Summary
130(1)
Chapter 6 Execute Maintenance
131(20)
What is MVCC
131(3)
MVCC in PostgreSQL
131(3)
Why/How---Maintenance Activities
134(16)
Table and Index Bloat
134(1)
AUTOVACUUM/VACUUM
135(10)
Index Fragmentation
145(3)
Other Database Maintenance
148(2)
Summary
150(1)
Chapter 7 High Availability Procedures and Implementing a Pooler
151(22)
Why High Availability?
152(1)
Gather Information to Set Up HA
152(4)
RPO and RTO
156(1)
RPO (Recovery Point Objective)
156(1)
RTO (Recovery Time Objective)
156(1)
High Availability Solutions in Core PostgreSQL
157(12)
Warm Standby/Log Shipping
157(1)
Hot Standby
158(1)
Streaming Replication
158(1)
Cascading Replication
159(1)
Warm/Hot Standby vs. Streaming Replication
159(1)
Simple HA Solution
160(1)
Better HA Solution
161(2)
Auto Failover Tools Available
163(5)
Replication Lag
168(1)
Common Replication Issues
169(1)
Why Connection Pooling
170(2)
Pgbouncer
170(1)
Pgpool-ll
171(1)
Summary
172(1)
Chapter 8 Basic Errors and Handy Queries
173(46)
Basic Errors of PostgreSQL
173(19)
Connection Errors
174(5)
Configuration Errors
179(3)
Query Errors
182(3)
Other Errors
185(7)
Handy Queries of PostgreSQL
192(25)
Basic Queries
192(1)
Monitoring Queries
192(17)
Object Privileges Queries
209(3)
Object Level Queries
212(5)
Summary
217(2)
Index 219
Baji Shaik is a database administrator and developer. He was introduced to databases in 2011 and over the years, has worked with Oracle, PostgreSQL, Postgres Advance Server, RedShift, and Greenplum. He has a wide range of expertise and experience in SQL/NoSQL databases such as Cassandra and DynamoDB. He is a database migration expert and has developed many successful database solutions addressing challenging business requirements for moving databases from on-premises to AWS Cloud using multiple AWS services. Baji has organized a number of PostgreSQL meet-ups and maintains his own technical blog, where he likes to share his knowledge with the community. He co-authored Beginning PostgreSQL on the Cloud, released in March 2018.