1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-30 06:01:21 +03:00

PL/pgSQL docs: recommend format() for query construction

Previously only concatenation was recommended.

Report by Pavel Stehule
This commit is contained in:
Bruce Momjian
2015-03-24 21:10:36 -04:00
parent 376a0c4547
commit 0e1f6d8132
2 changed files with 37 additions and 22 deletions

View File

@@ -2998,14 +2998,15 @@
<para>
<literal>I</literal> treats the argument value as an SQL
identifier, double-quoting it if necessary.
It is an error for the value to be null.
It is an error for the value to be null (equivalent to
<function>quote_ident</>).
</para>
</listitem>
<listitem>
<para>
<literal>L</literal> quotes the argument value as an SQL literal.
A null value is displayed as the string <literal>NULL</>, without
quotes.
quotes (equivalent to <function>quote_nullable</function>).
</para>
</listitem>
</itemizedlist>