postgresql_16:4.5.11.2 Locale and Formatting
PostgreSQL 16 > Server Administration > Server Configuration > Client Connection Defaults > Locale and Formatting
DateStyle (string)
Sets the display format for date and time values, as well as the rules for interpreting ambiguous date input values. For historical reasons, this variable contains two independent components: the output format specification (ISO, Postgres, SQL, or German) and the input/output specification for year/month/day ordering (DMY, MDY, or YMD). These can be set separately or together. The keywords Euro and European are synonyms for DMY; the keywords US, NonEuro, and NonEuropean are synonyms for MDY. See (see postgresql_16:3.5.5) for more information. The built-in default is ISO, MDY, but initdb will initialize the configuration file with a setting that corresponds to the behavior of the chosen lc_time locale.
IntervalStyle (enum)
Sets the display format for interval values. The value sql_standard will produce output matching SQL standard interval literals. The value postgres (which is the default) will produce output matching PostgreSQL releases prior to 8.4 when the (see guc-datestyle) parameter was set to ISO. The value postgres_verbose will produce output matching PostgreSQL releases prior to 8.4 when the DateStyle parameter was set to non-ISO output. The value iso_8601 will produce output matching the time interval “format with designators” defined in section 4.4.3.2 of ISO 8601.
The IntervalStyle parameter also affects the interpretation of ambiguous interval input. See (see postgresql_16:3.5.5.4) for more information.
TimeZone (string)
Sets the time zone for displaying and interpreting time stamps. The built-in default is GMT, but that is typically overridden in postgresql.conf; initdb will install a setting there corresponding to its system environment. See (see postgresql_16:3.5.5.3) for more information.
timezone_abbreviations (string)
Sets the collection of time zone abbreviations that will be accepted by the server for datetime input. The default is 'Default', which is a collection that works in most of the world; there are also 'Australia' and 'India', and other collections can be defined for a particular installation. See (see postgresql_16:9.2.4) for more information.
extra_float_digits (integer)
This parameter adjusts the number of digits used for textual output of floating-point values, including float4, float8, and geometric data types.
If the value is 1 (the default) or above, float values are output in shortest-precise format; see (see postgresql_16:3.5.1.3). The actual number of digits generated depends only on the value being output, not on the value of this parameter. At most 17 digits are required for float8 values, and 9 for float4 values. This format is both fast and precise, preserving the original binary float value exactly when correctly read. For historical compatibility, values up to 3 are permitted.
If the value is zero or negative, then the output is rounded to a given decimal precision. The precision used is the standard number of digits for the type (FLT_DIG or DBL_DIG as appropriate) reduced according to the value of this parameter. (For example, specifying -1 will cause float4 values to be output rounded to 5 significant digits, and float8 values rounded to 14 digits.) This format is slower and does not preserve all the bits of the binary float value, but may be more human-readable.
Note
The meaning of this parameter, and its default value, changed in PostgreSQL 12; see (see postgresql_16:3.5.1.3) for further discussion.
client_encoding (string)
Sets the client-side encoding (character set). The default is to use the database encoding. The character sets supported by the PostgreSQL server are described in (see postgresql_16:4.9.3.1).
lc_messages (string)
Sets the language in which messages are displayed. Acceptable values are system-dependent; see (see postgresql_16:4.9.1) for more information. If this variable is set to the empty string (which is the default) then the value is inherited from the execution environment of the server in a system-dependent way.
On some systems, this locale category does not exist. Setting this variable will still work, but there will be no effect. Also, there is a chance that no translated messages for the desired language exist. In that case you will continue to see the English messages.
Only superusers and users with the appropriate SET privilege can change this setting.
lc_monetary (string)
Sets the locale to use for formatting monetary amounts, for example with the to_char family of functions. Acceptable values are system-dependent; see (see postgresql_16:4.9.1) for more information. If this variable is set to the empty string (which is the default) then the value is inherited from the execution environment of the server in a system-dependent way.
lc_numeric (string)
Sets the locale to use for formatting numbers, for example with the to_char family of functions. Acceptable values are system-dependent; see (see postgresql_16:4.9.1) for more information. If this variable is set to the empty string (which is the default) then the value is inherited from the execution environment of the server in a system-dependent way.
lc_time (string)
Sets the locale to use for formatting dates and times, for example with the to_char family of functions. Acceptable values are system-dependent; see (see postgresql_16:4.9.1) for more information. If this variable is set to the empty string (which is the default) then the value is inherited from the execution environment of the server in a system-dependent way.
icu_validation_level (enum)
When ICU locale validation problems are encountered, controls which message level (see runtime-config-severity-levels) is used to report the problem. Valid values are DISABLED, DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, INFO, NOTICE, WARNING, ERROR, and LOG.
If set to DISABLED, does not report validation problems at all. Otherwise reports problems at the given message level. The default is WARNING.
default_text_search_config (string)
Selects the text search configuration that is used by those variants of the text search functions that do not have an explicit argument specifying the configuration. See (see postgresql_16:3.9) for further information. The built-in default is pg_catalog.simple, but initdb will initialize the configuration file with a setting that corresponds to the chosen lc_ctype locale, if a configuration matching that locale can be identified.