2 Chapter 18. Server Setup and Operation
6 18.1. The PostgreSQL User Account
7 18.2. Creating a Database Cluster
9 18.2.1. Use of Secondary File Systems
12 18.3. Starting the Database Server
14 18.3.1. Server Start-up Failures
15 18.3.2. Client Connection Problems
17 18.4. Managing Kernel Resources
19 18.4.1. Shared Memory and Semaphores
20 18.4.2. systemd RemoveIPC
21 18.4.3. Resource Limits
22 18.4.4. Linux Memory Overcommit
23 18.4.5. Linux Huge Pages
25 18.5. Shutting Down the Server
26 18.6. Upgrading a PostgreSQL Cluster
28 18.6.1. Upgrading Data via pg_dumpall
29 18.6.2. Upgrading Data via pg_upgrade
30 18.6.3. Upgrading Data via Replication
32 18.7. Preventing Server Spoofing
33 18.8. Encryption Options
34 18.9. Secure TCP/IP Connections with SSL
37 18.9.2. OpenSSL Configuration
38 18.9.3. Using Client Certificates
39 18.9.4. SSL Server File Usage
40 18.9.5. Creating Certificates
42 18.10. Secure TCP/IP Connections with GSSAPI Encryption
46 18.11. Secure TCP/IP Connections with SSH Tunnels
47 18.12. Registering Event Log on Windows
49 This chapter discusses how to set up and run the database server, and
50 its interactions with the operating system.
52 The directions in this chapter assume that you are working with plain
53 PostgreSQL without any additional infrastructure, for example a copy
54 that you built from source according to the directions in the preceding
55 chapters. If you are working with a pre-packaged or vendor-supplied
56 version of PostgreSQL, it is likely that the packager has made special
57 provisions for installing and starting the database server according to
58 your system's conventions. Consult the package-level documentation for