postgresql.confd 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Comma-separated list of directories that contain a unix
  2. # socket. Created and controlled by the related initscript. The
  3. # directories created will be owned root:postgres with mode 1775.
  4. #
  5. # /run/postgresql is the default directory.
  6. PG_SOCKET_DIRECTORIES="/run/postgresql"
  7. # Which port and socket to bind PostgreSQL
  8. PGPORT="5432"
  9. # How long to wait for server to start in seconds
  10. START_TIMEOUT=10
  11. # NICE_QUIT ignores new connections and wait for clients to disconnect from
  12. # server before shutting down. NICE_TIMEOUT in seconds determines how long to
  13. # wait for this to succeed.
  14. NICE_TIMEOUT=60
  15. # Forecfully disconnect clients from server and shut down. This is performed
  16. # after NICE_QUIT. Terminated client connections have their open transactions
  17. # rolled back.
  18. # Set RUDE_QUIT to "NO" to disable. RUDE_TIMEOUT in seconds.
  19. RUDE_QUIT="YES"
  20. RUDE_TIMEOUT=30
  21. # If the server still fails to shutdown, you can force it to quit by setting
  22. # this to YES and a recover-run will execute on the next startup.
  23. # Set FORCE_QUIT to "YES" to enable. FORCE_TIMEOUT in seconds.
  24. FORCE_QUIT="NO"
  25. FORCE_TIMEOUT=2
  26. # Extra options to run postmaster with, e.g.:
  27. # -N is the maximal number of client connections
  28. # -B is the number of shared buffers and has to be at least 2x the value for -N
  29. # Please read the man-page to postmaster for more options. Many of these
  30. # options can be set directly in the configuration file.
  31. #PGOPTS="-N 512 -B 1024"
  32. # Pass extra environment variables. If you have to export environment variables
  33. # for the database process, this can be done here.
  34. # Don't forget to escape quotes.
  35. #PG_EXTRA_ENV="PGPASSFILE=\"/path/to/.pgpass\""
  36. ##############################################################################
  37. #
  38. # The following values should not be arbitrarily changed.
  39. #
  40. # uses these values to
  41. # determine where to create the data directory, where to place the
  42. # configuration files, and any additional options to pass to initdb.
  43. #
  44. # The initscript also uses these variables to inform PostgreSQL where to find
  45. # its data directory and configuration files.
  46. #
  47. ##############################################################################
  48. # Location of configuration files
  49. PGDATA="/var/lib/postgres/data/"
  50. # Where the data directory is located/to be created
  51. DATA_DIR="/var/lib/postgres/data"
  52. # Additional options to pass to initdb.
  53. # See `man initdb' for available options.
  54. PG_INITDB_OPTS="--encoding=UTF8"