This document describes the parameters related to version and platform compatibility categories in the system configuration parameters.
Notes!
To ensure system stability and security, please be cautious when manually modifying relevant parameters.
This parameter controls whether the array input parser recognizes an unquoted NULL
as an empty array element.
on
, allowing input containing empty array values.off
, it is still possible to create array values containing empty values.Data type | Default value | Setting category |
---|---|---|
boolean | on | master; session; reload |
This parameter controls whether single quotes in string text can be represented using \'
.
‘’
), but \'
is also accepted.\‘
can lead to security risks because, in some client character set encodings, the last byte of a multibyte character is numerically equivalent to ASCII \’
. If client code fails to properly escape, this can result in SQL injection attacks. If the server rejects queries that appear to contain backslash-escaped single quotes, this risk can be avoided.on
(always allow \'
), off
(always reject), and safe_encoding
(only allow if the client encoding does not permit ASCII \
within multibyte characters).\
means \
. This parameter only affects the processing of non-standard text, including escape string syntax (E'...'
).Data type | Default value | Setting category |
---|---|---|
enum | safe_encoding | master;session;reload |
When this parameter is enabled, a warning is issued if a backslash (\
) appears in a regular string text (‘...’
syntax) and standard_conforming_strings
is disabled.
E'...'
), as the default behavior for regular strings in the SQL standard is to treat the backslash as a regular character.Data Type | Default Value | Setting Category |
---|---|---|
boolean | on | master;session;reload |
To maintain compatibility with previous versions, setting this variable to on
disables this new privilege check.
Data type | Default value | Setting category |
---|---|---|
boolean | off | segments;session;reload;superuser |
When this parameter is enabled, the parser will issue a warning for any structures whose meaning has changed due to operator precedence changes since PostgreSQL 9.4.
Data Type | Default Value | Setting Category |
---|---|---|
boolean | off | segments;session;reload |
When the database generates SQL, all identifiers are required to be enclosed in quotes, even if they are not currently keywords.
pg_get_viewdef
. See also the --quote-all-identifiers
option for pg_dump and pg_dumpall.Data type | Default value | Setting category |
---|---|---|
boolean | off | segments;session;reload |
Control whether ordinary string text (‘...’
) treats backslashes as ordinary text according to the SQL standard.
on
(the default value in previous releases was off
).E'...'
) is supported. If an application wants backslashes to be treated as escape characters, it should use escape string syntax.Data type | Default value | Setting category |
---|---|---|
boolean | on | master;session;reload |
It enables synchronized sequential scans of large tables with other scans, allowing concurrent scans to read the same blocks at nearly the same time, thereby distributing I/O load.
ORDER BY
clause, such scans may cause unpredictable changes in the order of returned rows.Data Type | Default Value | Setting Category |
---|---|---|
boolean | on | segments;session;reload |
Whether to allow path debugging information to be added to the YMatrix database.
Data type | Default value | Setting category |
---|---|---|
boolean | off | master;session;reload |
When this parameter is enabled, expressions of the form expr = NULL
(or NULL = expr
) are treated as expr IS NULL
, meaning that if expr evaluates to NULL, the result is true; otherwise, it is false.
expr = NULL
always returns null (unknown). Therefore, this parameter is set to off
by default.expr = NULL
to test for null values. Therefore, if you are accessing the database using this interface, you can enable this option.expr = NULL
always return a null value (as interpreted by the SQL standard), they are not very useful and are uncommon in typical applications. Therefore, this option poses little harm. However, new users often find the semantics of expressions involving null values confusing, so this option is set to off by default.= NULL
form, and does not affect other comparison operators or other expressions that are computationally equivalent to some expressions involving equality operators (such as IN
). Therefore, this option is not a general fix for poor programming.Data type | Default value | Setting category |
---|---|---|
boolean | off | master;session;reload |