Part III. Server Administration
This part covers topics that are of interest to a PostgreSQL database administrator. This includes installation of the software, set up and configuration of the server, management of users and databases, and maintenance tasks. Anyone who runs a PostgreSQL server, even for personal use, but especially in production, should be familiar with the topics covered in this part.
The information in this part is arranged approximately in the order in which a new user should read it. But the chapters are self-contained and can be read individually as desired. The information in this part is presented in a narrative fashion in topical units. Readers looking for a complete description of a particular command should see Part VI.
The first few chapters are written so they can be understood without prerequisite knowledge, so new users who need to set up their own server can begin their exploration with this part. The rest of this part is about tuning and management; that material assumes that the reader is familiar with the general use of the PostgreSQL database system. Readers are encouraged to look at Part I and Part II for additional information.
Table of Contents
- 16. Installation from Binaries
- 17. Installation from Source Code
- 18. Installation from Source Code on Windows
- 19. Server Setup and Operation
- 19.1. The PostgreSQL User Account
- 19.2. Creating a Database Cluster
- 19.3. Starting the Database Server
- 19.4. Managing Kernel Resources
- 19.5. Shutting Down the Server
- 19.6. Upgrading a PostgreSQL Cluster
- 19.7. Preventing Server Spoofing
- 19.8. Encryption Options
- 19.9. Secure TCP/IP Connections with SSL
- 19.10. Secure TCP/IP Connections with GSSAPI Encryption
- 19.11. Secure TCP/IP Connections with SSH Tunnels
- 19.12. Registering Event Log on Windows
- 19.2. Creating a Database Cluster
- 19.1. The PostgreSQL User Account
- 20. Server Configuration
- 20.1. Setting Parameters
- 20.2. File Locations
- 20.3. Connections and Authentication
- 20.4. Resource Consumption
- 20.5. Write Ahead Log
- 20.6. Replication
- 20.7. Query Planning
- 20.8. Error Reporting and Logging
- 20.9. Run-time Statistics
- 20.10. Automatic Vacuuming
- 20.11. Client Connection Defaults
- 20.12. Lock Management
- 20.13. Version and Platform Compatibility
- 20.14. Error Handling
- 20.15. Preset Options
- 20.16. Customized Options
- 20.17. Developer Options
- 20.18. Short Options
- 20.2. File Locations
- 20.1. Setting Parameters
- 21. Client Authentication
- 21.1. The
pg_hba.conf
File- 21.2. User Name Maps
- 21.3. Authentication Methods
- 21.4. Trust Authentication
- 21.5. Password Authentication
- 21.6. GSSAPI Authentication
- 21.7. SSPI Authentication
- 21.8. Ident Authentication
- 21.9. Peer Authentication
- 21.10. LDAP Authentication
- 21.11. RADIUS Authentication
- 21.12. Certificate Authentication
- 21.13. PAM Authentication
- 21.14. BSD Authentication
- 21.15. Authentication Problems
- 21.2. User Name Maps
- 21.1. The
- 22. Database Roles
- 23. Managing Databases
- 24. Localization
- 25. Routine Database Maintenance Tasks
- 26. Backup and Restore
- 27. High Availability, Load Balancing, and Replication
- 28. Monitoring Database Activity
- 29. Monitoring Disk Usage
- 30. Reliability and the Write-Ahead Log
- 31. Logical Replication
- 32. Just-in-Time Compilation (JIT)
- 33. Regression Tests