![]() Without this option, only local connections are accepted. iĪllows remote clients to connect via TCP/IP (Internet domain) connections. Specifying this option is equivalent to setting the listen_addresses configuration parameter. An empty value specifies not listening on any IP addresses, in which case only Unix-domain sockets can be used to connect to the server. The value can also be a comma-separated list of addresses, or * to specify listening on all available interfaces. Specifies the IP host name or address on which postgres is to listen for TCP/IP connections from client applications. ![]() Read the detailed documentation before using this! -h hostname Specifying this option is equivalent to disabling the fsync configuration parameter. ![]() Fĭisables fsync calls for improved performance, at the risk of data corruption in the event of a system crash. This also causes the day to be printed before the month in certain date output formats. Sets the default date style to “ European”, that is DMY ordering of input date fields. Specifies the file system location of the database configuration files. It is also possible to pass -d 0 for a specific session, which will prevent the server log level of the parent postgres process from being propagated to this session. The higher this value is set, the more debugging output is written to the server log. User-facing applications should instead use SHOW or the pg_settings view. This option is meant for other programs that interact with a server instance, such as pg_ctl, to query configuration parameter values. However, the server must be shut down for some runtime-computed parameters (e.g., shared_memory_size, shared_memory_size_in_huge_pages, and wal_segment_size). This can be used on a running server for most parameters. It does not reflect parameters supplied when the cluster was started. (See the -c option above for details.) This returns values from nf, modified by any parameters supplied in this invocation. Prints the value of the named run-time parameter, and exits. c can appear multiple times to set multiple parameters. Most of the other command line options are in fact short forms of such a parameter assignment. ![]() The configuration parameters supported by PostgreSQL are described in Chapter 20. Specifying this option is equivalent to setting the shared_buffers configuration parameter. The default value of this parameter is chosen automatically by initdb. Sets the number of shared buffers for use by the server processes. This user does not actually have to exist, so the single-user mode can be used to manually recover from certain kinds of accidental damage to the system catalogs. In the single-user mode, the session user will be set to the user with ID 1, and implicit superuser powers are granted to this user. When invoked in single-user mode from the shell, the user can enter queries and the results will be printed to the screen, but in a form that is more useful for developers than end users. Sometimes it is used for debugging or disaster recovery note that running a single-user server is not truly suitable for debugging the server, since no realistic interprocess communication and locking will happen. The primary use for this mode is during bootstrapping by initdb. The postgres command can also be called in single-user mode. In practical applications postgres should be started as a background process, perhaps at boot time. Other possible file layouts are discussed in Section 20.2.īy default postgres starts in the foreground and prints log messages to the standard error stream. Typically, -D or PGDATA points directly to the data area directory created by initdb. The location must be specified by the -D option or the PGDATA environment variable there is no default. When postgres starts it needs to know the location of the data area. More than one postgres instance can run on a system at one time, so long as they use different data areas and different communication ports (see below). A database cluster is a collection of databases that is stored at a common file system location (the “ data area”). One postgres instance always manages the data of exactly one database cluster. The postgres instance then starts a separate server process to handle the connection. In order for a client application to access a database it connects (over a network or locally) to a running postgres instance. Postgres is the PostgreSQL database server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |