|
|
| · · · · · · · | |
pgAdmin 1.6 online documentationChapter 17. Server ConfigurationTable of Contents
There are many configuration parameters that affect the behavior of the database system. In the first section of this chapter, we describe how to set configuration parameters. The subsequent sections discuss each parameter in detail. 17.1. Setting Parameters All parameter names are case-insensitive. Every parameter takes a
value of one of four types: Boolean, integer, floating point,
or string. Boolean values may be written as Some settings specify a memory or time value. Each of these has an
implicit unit, which is either kilobytes, blocks (typically eight
kilobytes), milliseconds, seconds, or minutes. Default units can be
queried by referencing One way to set these parameters is to edit the file
# This is a comment log_connections = yes log_destination = 'syslog' search_path = '"$user", public' shared_buffers = 128MB
One parameter is specified per line. The equal sign between name and
value is optional. Whitespace is insignificant and blank lines are
ignored. Hash marks (
In addition to parameter settings, the include 'filename' If the file name is not an absolute path, it is taken as relative to the directory containing the referencing configuration file. Inclusions can be nested.
The configuration file is reread whenever the main server process receives a
SIGHUP signal (which is most easily sent by means
of A second way to set these configuration parameters is to give them
as a command-line option to the postgres -c log_connections=yes -c log_destination='syslog'
Command-line options override any conflicting settings in
Occasionally it is useful to give a command line option to
one particular session only. The environment variable
env PGOPTIONS='-c geqo=off' psql
(This works for any libpq-based client application, not
just psql.) Note that this won't work for
parameters that are fixed when the server is started or that must be
specified in Furthermore, it is possible to assign a set of parameter settings to
a user or a database. Whenever a session is started, the default
settings for the user and database involved are loaded. The
commands ALTER USER
and ALTER DATABASE,
respectively, are used to configure these settings. Per-database
settings override anything received from the
Some parameters can be changed in individual SQL sessions with the SET command, for example: SET ENABLE_SEQSCAN TO OFF;
If The SHOW command allows inspection of the current values of all parameters. The virtual table |