19.13. Version and Platform Compatibility
19.13.1. Previous Postgres Pro Versions
This controls whether the array input parser recognizes unquoted
NULLas specifying a null array element. By default, this is
on, allowing array values containing null values to be entered. However, PostgreSQL versions before 8.2 did not support null values in arrays, and therefore would treat
NULLas specifying a normal array element with the string value “NULL”. For backward compatibility with applications that require the old behavior, this variable can be turned
Note that it is possible to create array values containing null values even when this variable is
This controls whether a quote mark can be represented by
\'in a string literal. The preferred, SQL-standard way to represent a quote mark is by doubling it (
'') but Postgres Pro has historically also accepted
\'. However, use of
\'creates security risks because in some client character set encodings, there are multibyte characters in which the last byte is numerically equivalent to ASCII
\. If client-side code does escaping incorrectly then an SQL-injection attack is possible. This risk can be prevented by making the server reject queries in which a quote mark appears to be escaped by a backslash. The allowed values of
off(reject always), and
safe_encoding(allow only if client encoding does not allow ASCII
\within a multibyte character).
safe_encodingis the default setting.
Note that in a standard-conforming string literal,
\anyway. This parameter only affects the handling of non-standard-conforming literals, including escape string syntax (
When on, a warning is issued if a backslash (
\) appears in an ordinary string literal (
standard_conforming_stringsis off. The default is
Applications that wish to use backslash as escape should be modified to use escape string syntax (
E'...'), because the default behavior of ordinary strings is now to treat backslash as an ordinary character, per SQL standard. This variable can be enabled to help locate code that needs to be changed.
In PostgreSQL releases prior to 9.0, large objects did not have access privileges and were, therefore, always readable and writable by all users. Setting this variable to
ondisables the new privilege checks, for compatibility with prior releases. The default is
off. Only superusers and users with the appropriate
SETprivilege can change this setting.
Setting this variable does not disable all security checks related to large objects — only those for which the default behavior has changed in PostgreSQL 9.0.
Defines the backend to use for partitioning with declarative syntax. Possible values are:
internal— use Postgres Pro Enterprise core functionality for range and list partitioning. This value is incompatible with declarative syntax for hash partitioning.
pg_pathmanfor range and hash partitioning. This value is incompatible with declarative syntax for list partitioning. You must have
pg_pathmaninstalled to use this value.
Starting from Postgres Pro 12, using pg_pathman is not recommended.
When the database generates SQL, force all identifiers to be quoted, even if they are not (currently) keywords. This will affect the output of
EXPLAINas well as the results of functions like
pg_get_viewdef. See also the
--quote-all-identifiersoption of pg_dump and pg_dumpall.
Replace NUL bytes
'\0'with the specified decimal code of an ASCII character while loading data using the
COPY FROMcommand. Such a replacement may be required when transferring data from another DBMS since Postgres Pro does not allow NUL bytes in data. The specified ASCII code must not coincide with the
DELIMITERcharacters used by
COPY FROMas it may cause unexpected results. The default value is
'\0', so no replacement occurs.
When set to
true, allows to copy, dump and restore large
byteavalues exceeding 0.5 GB (up to 1 GB) and records with several
textvalues exceeding 1 GB in total (up to 2 GB). The default value is
false. Only superusers can change this setting and only in the current session using the
This controls whether ordinary string literals (
'...') treat backslashes literally, as specified in the SQL standard. Beginning in PostgreSQL 9.1, the default is
on(prior releases defaulted to
off). Applications can check this parameter to determine how string literals will be processed. The presence of this parameter can also be taken as an indication that the escape string syntax (
E'...') is supported. Escape string syntax (Section 18.104.22.168) should be used if an application desires backslashes to be treated as escape characters.
This allows sequential scans of large tables to synchronize with each other, so that concurrent scans read the same block at about the same time and hence share the I/O workload. When this is enabled, a scan might start in the middle of the table and then “wrap around” the end to cover all rows, so as to synchronize with the activity of scans already in progress. This can result in unpredictable changes in the row ordering returned by queries that have no
ORDER BYclause. Setting this parameter to
offensures the pre-8.3 behavior in which a sequential scan always starts from the beginning of the table. The default is
19.13.2. Platform and Client Compatibility
'\u0000'with the specified unicode character when calling a function processing JSONB since
jsonb*functions do not accept
'\u0000'. The replacing character is specified with the numeric value from 0 to 65535. Anyone can set the value of this configuration parameter anytime. The default value is
0, so no replacement occurs.
When on, expressions of the form
NULL =) are treated as
, that is, they return true if
exprevaluates to the null value, and false otherwise. The correct SQL-spec-compliant behavior of
is to always return null (unknown). Therefore this parameter defaults to
However, filtered forms in Microsoft Access generate queries that appear to use
to test for null values, so if you use that interface to access the database you might want to turn this option on. Since expressions of the form
always return the null value (using the SQL standard interpretation), they are not very useful and do not appear often in normal applications so this option does little harm in practice. But new users are frequently confused about the semantics of expressions involving null values, so this option is off by default.
Note that this option only affects the exact form
= NULL, not other comparison operators or other expressions that are computationally equivalent to some expression involving the equals operator (such as
IN). Thus, this option is not a general fix for bad programming.
Refer to Section 9.2 for related information.