About the Author |
|
ix | |
About the Technical Reviewer |
|
xi | |
|
Chapter 1 Best Ways to Install PostgreSQL |
|
|
1 | (28) |
|
Information Needed for Installation |
|
|
2 | (3) |
|
|
5 | (12) |
|
|
6 | (7) |
|
|
13 | (1) |
|
|
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) |
|
|
21 | (4) |
|
|
25 | (3) |
|
|
25 | (2) |
|
|
27 | (1) |
|
Troubleshooting Installation Issues |
|
|
28 | (1) |
|
|
28 | (1) |
|
Chapter 2 Configure Your Database for Better Performance |
|
|
29 | (32) |
|
Initial Steps After Installation |
|
|
29 | (6) |
|
For PostgreSQL Developers |
|
|
30 | (2) |
|
|
32 | (3) |
|
Configuration Files and Recommendations |
|
|
35 | (19) |
|
|
35 | (1) |
|
|
36 | (2) |
|
|
38 | (1) |
|
Parameter Recommendations |
|
|
39 | (15) |
|
|
54 | (5) |
|
|
55 | (1) |
|
|
55 | (1) |
|
|
55 | (1) |
|
|
56 | (2) |
|
|
58 | (1) |
|
|
59 | (2) |
|
Chapter 3 User Management and Securing Databases |
|
|
61 | (32) |
|
Information That You Need to Know |
|
|
62 | (4) |
|
|
66 | (25) |
|
|
67 | (6) |
|
|
73 | (7) |
|
|
80 | (2) |
|
|
82 | (2) |
|
|
84 | (2) |
|
|
86 | (1) |
|
|
87 | (1) |
|
|
88 | (2) |
|
|
90 | (1) |
|
|
91 | (1) |
|
High Security and Encryption Guidelines |
|
|
91 | (1) |
|
|
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) |
|
|
96 | (12) |
|
|
96 | (2) |
|
|
98 | (8) |
|
|
106 | (1) |
|
|
107 | (1) |
|
|
108 | (1) |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
110 | (1) |
|
Chapter 5 Enable Logging of Your Database and Monitoring PostgreSQL Instances |
|
|
111 | (20) |
|
|
111 | (9) |
|
Parameters to Set for Logging |
|
|
112 | (8) |
|
|
120 | (10) |
|
|
120 | (1) |
|
|
121 | (2) |
|
Database Level Monitoring |
|
|
123 | (2) |
|
Monitoring/Reporting Tools |
|
|
125 | (5) |
|
|
130 | (1) |
|
Chapter 6 Execute Maintenance |
|
|
131 | (20) |
|
|
131 | (3) |
|
|
131 | (3) |
|
Why/How---Maintenance Activities |
|
|
134 | (16) |
|
|
134 | (1) |
|
|
135 | (10) |
|
|
145 | (3) |
|
Other Database Maintenance |
|
|
148 | (2) |
|
|
150 | (1) |
|
Chapter 7 High Availability Procedures and Implementing a Pooler |
|
|
151 | (22) |
|
|
152 | (1) |
|
Gather Information to Set Up HA |
|
|
152 | (4) |
|
|
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) |
|
|
158 | (1) |
|
|
158 | (1) |
|
|
159 | (1) |
|
Warm/Hot Standby vs. Streaming Replication |
|
|
159 | (1) |
|
|
160 | (1) |
|
|
161 | (2) |
|
Auto Failover Tools Available |
|
|
163 | (5) |
|
|
168 | (1) |
|
Common Replication Issues |
|
|
169 | (1) |
|
|
170 | (2) |
|
|
170 | (1) |
|
|
171 | (1) |
|
|
172 | (1) |
|
Chapter 8 Basic Errors and Handy Queries |
|
|
173 | (46) |
|
Basic Errors of PostgreSQL |
|
|
173 | (19) |
|
|
174 | (5) |
|
|
179 | (3) |
|
|
182 | (3) |
|
|
185 | (7) |
|
Handy Queries of PostgreSQL |
|
|
192 | (25) |
|
|
192 | (1) |
|
|
192 | (17) |
|
Object Privileges Queries |
|
|
209 | (3) |
|
|
212 | (5) |
|
|
217 | (2) |
Index |
|
219 | |