CONTENT
  • CHANGES
Szukaj
counter

#top Konfiguracja


#top Listen


Zobacz także Listen dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: listen_addresses
Opcja pliku konfiguracyjnego: listen_addresses=HOSTNAME
Opcja wiersza poleceń: -h HOSTNAME
Domyślna wartość: localhost

Dokumentacja PostgreSQL: port
Opcja pliku konfiguracyjnego: port=PORT
Opcja wiersza poleceń: -p PORT
Domyślna wartość: 5432 (może być zdefiowana podczas kompilacji serwera, może być różna od niniejszej)

Dokumentacja PostgreSQL: unix_socket_directory
Opcja pliku konfiguracyjnego: unix_socket_directory=DIRECTORY dostępna do wersji 9.2, zastąpiona przez unix_socket_directories
Opcja wiersza poleceń: -k DIRECTORY
Domyślna wartość: /tmp (może być zdefiowana podczas kompilacji serwera, może być różna od niniejszej)

Dokumentacja PostgreSQL: unix_socket_directories
Opcja pliku konfiguracyjnego: unix_socket_directories=DIRECTORIES dostępna od wersji 9.3, zamiast unix_socket_directory
Opcja wiersza poleceń: -k DIRECTORIES
Domyślna wartość: /tmp (może być zdefiowana podczas kompilacji serwera, może być różna od niniejszej)


Dokumentacja PostgreSQL: unix_socket_group
Opcja pliku konfiguracyjnego: unix_socket_group=
Opcja wiersza poleceń: -c unix_socket_group=GROUP
Domyślna wartość:  

Dokumentacja PostgreSQL: unix_socket_permissions
Opcja pliku konfiguracyjnego: unix_socket_permissions=PERM
Opcja wiersza poleceń: -c unix_socket_permissions=PERM
Domyślna wartość: 0777

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
listen_addresses='*'         # what IP address(es) to listen on;
                             # comma-separated list of addresses;
                             # defaults to 'localhost', '*' = all
port=3306
unix_socket_directory = '/tmp'
#unix_socket_group = ''
unix_socket_permissions = 0777         # octal

Plik konfiguracyjny: /etc/sysconfig/pgsql/postgresql
PGOPTS="-h '*' -c unix_socket_directory=/tmp -c unix_socket_permissions=0777"
PGPORT=5432



#top Timeout


Zobacz także Timeout dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: authentication_timeout
Opcja pliku konfiguracyjnego: authentication_timeout = 1m
Opcja wiersza poleceń: -c authentication_timeout=1m
Domyślna wartość: 1m The default is one minute (1m).

Dokumentacja PostgreSQL: checkpoint_timeout
Opcja pliku konfiguracyjnego: checkpoint_timeout = 5min
Opcja wiersza poleceń: -c checkpoint_timeout=5min
Domyślna wartość: 5min The default is five minutes (5min).

Dokumentacja PostgreSQL: archive_timeout
Opcja pliku konfiguracyjnego: archive_timeout = 5min
Opcja wiersza poleceń: -c archive_timeout=5min
Domyślna wartość: 5min The default is five minutes (5min).

Dokumentacja PostgreSQL: replication_timeout
Opcja pliku konfiguracyjnego: replication_timeout = 60
Opcja wiersza poleceń: -c replication_timeout=60
Domyślna wartość: The default value is 60 seconds.

Dokumentacja PostgreSQL: statement_timeout
Opcja pliku konfiguracyjnego: statement_timeout=0
Opcja wiersza poleceń: -c statement_timeout=0
Domyślna wartość: 0 A value of zero (the default) turns off the limitation.

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------

# - Security and Authentication -

authentication_timeout = 1min          # 1s-600s



#------------------------------------------------------------------------------
# WRITE AHEAD LOG
#------------------------------------------------------------------------------

# - Checkpoints -

checkpoint_timeout = 5min              # range 30s-1h



#------------------------------------------------------------------------------
# WRITE AHEAD LOG
#------------------------------------------------------------------------------

# - Archiving -

archive_timeout = 0            # force a logfile segment switch after this



#------------------------------------------------------------------------------
# REPLICATION
#------------------------------------------------------------------------------

replication_timeout = 60s      # in milliseconds; 0 disables



#------------------------------------------------------------------------------
# CLIENT CONNECTION DEFAULTS
#------------------------------------------------------------------------------

statement_timeout = 0                  # in milliseconds, 0 is disabled



#------------------------------------------------------------------------------
# LOCK MANAGEMENT
#------------------------------------------------------------------------------

deadlock_timeout = 1s

Plik konfiguracyjny: /etc/sysconfig/pgsql/postgresql
PGOPTS="-c authentication_timeout=1min -c checkpoint_timeout=5min -c archive_timeout=0 -c replication_timeout=60s -c statement_timeout=0 -c deadlock_timeout=1s"



#top DataDirectory


Zobacz także DataDirectory dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: data_directory
Opcja pliku konfiguracyjnego: data_directory = 'DATADIR'
Opcja wiersza poleceń: -D DATADIR
Domyślna wartość: /var/lib/pgsql/data (może być zdefiowana podczas kompilacji serwera, może być różna od niniejszej)

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
data_directory = '/srv/pgsql/data'       # use data in another directory

Plik konfiguracyjny: /etc/sysconfig/pgsql/postgresql
PGDATA=/srv/pgsql/data



#top ErrorLog


Zobacz także ErrorLog dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: log_destination
Opcja pliku konfiguracyjnego: log_destination = 'value'
Opcja wiersza poleceń: -c log_destination=value
Domyślna wartość: stderr

Dokumentacja PostgreSQL: log_directory
Opcja pliku konfiguracyjnego: log_directory = 'directory'
Opcja wiersza poleceń: -c log_directory=directory
Domyślna wartość: pg_log

Dokumentacja PostgreSQL: log_filename
Opcja pliku konfiguracyjnego: log_filename = 'filename'
Opcja wiersza poleceń: -c log_filename=filename
Domyślna wartość: postgresql-%a.log

Dokumentacja PostgreSQL: log_rotation_age
Opcja pliku konfiguracyjnego: log_rotation_age = 'value'
Opcja wiersza poleceń: -c log_rotation_age=value
Domyślna wartość: 1440

Dokumentacja PostgreSQL: log_rotation_size
Opcja pliku konfiguracyjnego: log_rotation_size = 'value'
Opcja wiersza poleceń: -c log_rotation_size=value
Domyślna wartość: 0

Dokumentacja PostgreSQL: log_truncate_on_rotation
Opcja pliku konfiguracyjnego: log_truncate_on_rotation = 'value'
Opcja wiersza poleceń: -c log_truncate_on_rotation=value
Domyślna wartość: on

Dokumentacja PostgreSQL: log_line_prefix
Opcja pliku konfiguracyjnego: log_line_prefix = 'string'
Opcja wiersza poleceń: -c log_line_prefix=string
Domyślna wartość:   (The default is an empty string.)

Dokumentacja PostgreSQL: log_connections
Opcja pliku konfiguracyjnego: log_connections = 'boolean'
Opcja wiersza poleceń: -c log_connections=boolean
Domyślna wartość: off

Dokumentacja PostgreSQL: log_disconnections
Opcja pliku konfiguracyjnego: log_disconnections = 'boolean'
Opcja wiersza poleceń: -c log_disconnections=boolean
Domyślna wartość: off

Dokumentacja PostgreSQL: log_hostname
Opcja pliku konfiguracyjnego: log_hostname = 'boolean'
Opcja wiersza poleceń: -c log_hostname=boolean
Domyślna wartość: off

Dokumentacja PostgreSQL: log_statement
Opcja pliku konfiguracyjnego: log_statement = 'string'
Opcja wiersza poleceń: -c log_statement=string
Domyślna wartość: none

Dokumentacja PostgreSQL: log_duration
Opcja pliku konfiguracyjnego: log_duration = 'boolean'
Opcja wiersza poleceń: -c log_duration=boolean
Domyślna wartość: off

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
#log_destination = 'stderr'             # Valid values are combinations of
                                        # stderr, syslog and eventlog,
                                        # depending on platform.
log_directory = '/var/log/postgresql'   # Directory where log files are written
                                        # can be absolute or relative to PGDATA
log_filename = 'postgresql-main%.log'   # Log file name pattern.
                                        # can include strftime() escapes
log_truncate_on_rotation = on           # If on, an existing log file of the
                                        # same name as the new log file will be
                                        # truncated rather than appended to.
                                        # But such truncation only occurs on
                                        # time-driven rotation, not on restarts
                                        # or size-driven rotation.  Default is
                                        # off, meaning append to existing files
                                        # in all cases.
log_rotation_age = 1440                 # Automatic rotation of logfiles will
                                        # happen after that time.  0 disables.
log_rotation_size = 0                   # Automatic rotation of logfiles will
                                        # happen after that much log output.
                                        # 0 disables.

log_line_prefix = '%t '                 # Special values:
                                        #   %u = user name
                                        #   %d = database name
                                        #   %r = remote host and port
                                        #   %h = remote host
                                        #   %p = PID
                                        #   %t = timestamp (no milliseconds)
                                        #   %m = timestamp with milliseconds
                                        #   %i = command tag
                                        #   %c = session id
                                        #   %l = session line number
                                        #   %s = session start timestamp
                                        #   %x = transaction id
                                        #   %q = stop here in non-session
                                        #        processes
                                        #   %% = '%'
                                        # e.g. '<%u%%%d> '



#top MaxConnections


Zobacz także MaxConnections dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: max_connections
Opcja pliku konfiguracyjnego: max_connections = 'value'
Opcja wiersza poleceń: -c max_connections=value
Domyślna wartość: 100

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
max_connections = 100                   # (change requires restart)
# Note:  Increasing max_connections costs ~400 bytes of shared memory per
# connection slot, plus lock space (see max_locks_per_transaction).

Plik konfiguracyjny: /etc/sysconfig/pgsql/postgresql
PGOPTS="-c max_connections=100"





#top Memory


Zobacz także Memory dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: shared_buffers
Opcja pliku konfiguracyjnego: shared_buffers = 'value'
Opcja wiersza poleceń: -c shared_buffers=value
Domyślna wartość: 32MB

Dokumentacja PostgreSQL: temp_buffers
Opcja pliku konfiguracyjnego: temp_buffers = 'value'
Opcja wiersza poleceń: -c temp_buffers=value
Domyślna wartość: 8MB

Dokumentacja PostgreSQL: max_prepared_transactions
Opcja pliku konfiguracyjnego: max_prepared_transactions = 'value'
Opcja wiersza poleceń: -c max_prepared_transactions=value
Domyślna wartość: 0 (max_prepared_transactions=0 oznacza wyłączenie niniejszej opcji)

Dokumentacja PostgreSQL: work_mem
Opcja pliku konfiguracyjnego: work_mem = 'value'
Opcja wiersza poleceń: -c work_mem=value
Domyślna wartość: 1MB

Dokumentacja PostgreSQL: maintenance_work_mem
Opcja pliku konfiguracyjnego: maintenance_work_mem = 'value'
Opcja wiersza poleceń: -c maintenance_work_mem=value
Domyślna wartość: 16MB

Dokumentacja PostgreSQL: max_stack_depth
Opcja pliku konfiguracyjnego: max_stack_depth = 'value'
Opcja wiersza poleceń: -c max_stack_depth=value
Domyślna wartość: 2MB

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
# - Memory -

shared_buffers = 1024MB                 # min 128kB
                                        # (change requires restart)
temp_buffers = 8MB                      # min 800kB
#max_prepared_transactions = 0          # zero disables the feature
                                        # (change requires restart)
# Note:  Increasing max_prepared_transactions costs ~600 bytes of shared memory
# per transaction slot, plus lock space (see max_locks_per_transaction).
# It is not advisable to set max_prepared_transactions nonzero unless you
# actively intend to use prepared transactions.
work_mem = 1MB                          # min 64kB
maintenance_work_mem = 16MB             # min 1MB
max_stack_depth = 2MB                   # min 100kB

Plik konfiguracyjny: /etc/sysconfig/pgsql/postgresql
PGOPTS="-c shared_buffers=1024MB -c temp_buffers=1MB -c work_mem=1MB -c maintenance_work_mem=16MB -c max_stack_depth=2MB"



#top SYSVIPC


Dokumentacja PostgreSQL: Shared Memory and Semaphores

Zobacz ustawienia Shared Memory and Semaphores dla systemu operacyjnego: /proc/sys/kernel/shm | kernel.shm

System V IPC parameters

Name Description Reasonable values
SHMMAX Maximum size of shared memory segment (bytes) at least several megabytes (see text)
SHMMIN Minimum size of shared memory segment (bytes) 1
SHMALL Total amount of shared memory available (bytes or pages) if bytes, same as SHMMAX; if pages, ceil(SHMMAX/PAGE_SIZE)



#top TLS Engine


#top TLS Enable


Zobacz także TLS Enable dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: ssl
Opcja pliku konfiguracyjnego: ssl=on
Opcja wiersza poleceń: -c ssl=on
Domyślna wartość: off

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
# - Security and Authentication -

ssl = on              # (change requires restart)



#top TLS Cert/Key File


Zobacz także TLS Cert/Key File dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: SSL Server File Usage
Opcja pliku konfiguracyjnego: ssl_cert_file=server.crt
Opcja wiersza poleceń: -c ssl_cert_file=server.crt
Domyślna wartość: server.crt

Dokumentacja PostgreSQL: SSL Server File Usage
Opcja pliku konfiguracyjnego: ssl_key_file=server.key
Opcja wiersza poleceń: -c ssl_key_file=server.key
Domyślna wartość: server.key

Dokumentacja PostgreSQL: SSL Server File Usage
Opcja pliku konfiguracyjnego: ssl_ca_file=root.crt
Opcja wiersza poleceń: -c ssl_ca_file=root.crt
Domyślna wartość: root.crt

Dokumentacja PostgreSQL: SSL Server File Usage
Opcja pliku konfiguracyjnego: ssl_crl_file=root.crl
Opcja wiersza poleceń: -c ssl_crl_file=root.crl
Domyślna wartość: root.crl

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf

#ssl_cert_file = 'server.crt'       # (change requires restart)
ssl_cert_file = '/etc/pki/tls/certs/wbcd.pl-pgsql.pem'      # (change requires restart)
#ssl_key_file = 'server.key'        # (change requires restart)
ssl_key_file = '/etc/pki/tls/certs/wbcd.pl-pgsql.pem'       # (change requires restart)

#ssl_ca_file = ''           # (change requires restart)
#ssl_crl_file = ''          # (change requires restart)



#top TLS Protocols


Zobacz także TLS Protocols dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: ssl
Opcja pliku konfiguracyjnego: -
Opcja wiersza poleceń: -
Domyślna wartość: -

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf




#top TLS CipherSuite


Zobacz także TLS CipherSuite dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: ssl_ciphers
Opcja pliku konfiguracyjnego: ssl_ciphers='ciphers'
Opcja wiersza poleceń: -c ssl_ciphers='ciphers'
Domyślna wartość: HIGH:MEDIUM:+3DES:!aNULL

Dokumentacja PostgreSQL: ssl_ciphers
Opcja pliku konfiguracyjnego: ssl_prefer_server_ciphers=flag
Opcja wiersza poleceń: -c ssl_prefer_server_ciphers=flag
Domyślna wartość: on

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
# Domyślna wartość
ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
                    # (change requires restart)
# Włączenie preferowania CipherSuite wysyłanego przez serwer (domyślnie używana jest preferencja wysyłana przez klienta)
ssl_prefer_server_ciphers = on     # (change requires restart)

# Wyłączenie RC4 ze względów bezpieczeństwa (Obsługa RC4 nie jest zalecana ze względów bezpieczeństwa)
ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL:!RC4' # allowed SSL ciphers
                    # (change requires restart)
# Włączenie preferowania CipherSuite wysyłanego przez serwer (domyślnie używana jest preferencja wysyłana przez klienta)
ssl_prefer_server_ciphers = on     # (change requires restart)



#top TLS Compression


Zobacz także TLS Compression dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: ssl
Opcja pliku konfiguracyjnego: -
Opcja wiersza poleceń: -
Domyślna wartość: -

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf




#top TLS Options


Zobacz także TLS Options dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja PostgreSQL: ssl
Opcja pliku konfiguracyjnego: ssl_ecdh_curve=string
Opcja wiersza poleceń: -c ssl_ecdh_curve=string
Domyślna wartość: prime256v1

Dokumentacja PostgreSQL: ssl
Opcja pliku konfiguracyjnego: ssl_renegotiation_limit=string
Opcja wiersza poleceń: -c ssl_renegotiation_limit=string
Domyślna wartość: 512MB

EXAMPLES
Plik konfiguracyjny: /etc/postgresql/postgresql.cnf
ssl_ecdh_curve = 'prime256v1'      # (change requires restart)
ssl_renegotiation_limit = 512MB    # amount of data between renegotiations


















































Zmodyfikowany ostatnio: 2017/06/21 17:36:25 (6 lat temu), textsize: 30,5 kB, htmlsize: 45,7 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników