PostgreSQL 8.0.1 Documentation | ||||
---|---|---|---|---|
Prev | Fast Backward | Fast Forward | Next |
Chapter 16. Server Run-time Environment
- Table of Contents
- 16.1. The PostgreSQL User Account
- 16.2. Creating a Database Cluster
- 16.3. Starting the Database Server
- 16.3.1. Server Start-up Failures
- 16.3.2. Client Connection Problems
- 16.4. Run-time Configuration
- 16.4.1. File Locations
- 16.4.2. Connections and Authentication
- 16.4.3. Resource Consumption
- 16.4.4. Write Ahead Log
- 16.4.5. Query Planning
- 16.4.6. Error Reporting and Logging
- 16.4.7. Runtime Statistics
- 16.4.8. Client Connection Defaults
- 16.4.9. Lock Management
- 16.4.10. Version and Platform Compatibility
- 16.4.11. Preset Options
- 16.4.12. Customized Options
- 16.4.13. Developer Options
- 16.4.14. Short Options
- 16.5. Managing Kernel Resources
- 16.5.1. Shared Memory and Semaphores
- 16.5.2. Resource Limits
- 16.5.3. Linux Memory Overcommit
- 16.6. Shutting Down the Server
- 16.7. Secure TCP/IP Connections with SSL
- 16.8. Secure TCP/IP Connections with SSH Tunnels
This chapter discusses how to set up and run the database server and its interactions with the operating system.
16.1. The PostgreSQL User Account
As with any other server daemon that is accessible to the outside world, it is advisable to run PostgreSQL under a separate user account. This user account should only own the data that is managed by the server, and should not be shared with other daemons. (For example, using the user nobody is a bad idea.) It is not advisable to install executables owned by this user because compromised systems could then modify their own binaries.
To add a Unix user account to your system, look for a command useradd or adduser. The user name postgres is often used, and is assumed throughout this book, but you can use another name if you like.