postgres.git / summary / log / commit / refs

commit    ed697c4040653cfeaff859078302517a198c9446
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Fri Oct 20 17:01:02 2023 +0000
First released in: 17.0, 11.22, 12.17, 13.13, 14.10, 15.5, 16.1

    Doc: update CREATE OPERATOR's statement about => as an operator.
    
    This doco said that use of => as an operator "is deprecated".
    It's been fully disallowed since 865f14a2d back in 9.5, but
    evidently that commit missed updating this statement.
    Do so now.


doc/src/sgml/ref/create_operator.sgml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/ref/create_operator.sgml b/doc/src/sgml/ref/create_operator.sgml index 66c34e0072f..56d052f7769 100644 --- a/doc/src/sgml/ref/create_operator.sgml +++ b/doc/src/sgml/ref/create_operator.sgml @@ -52,7 +52,8 @@ CREATE OPERATOR <replaceable>name</replaceable> ( There are a few restrictions on your choice of name: <itemizedlist> <listitem> - <para><literal>--</literal> and <literal>/*</literal> cannot appear anywhere in an operator name, + <para> + <literal>--</literal> and <literal>/*</literal> cannot appear anywhere in an operator name, since they will be taken as the start of a comment. </para> </listitem> @@ -72,8 +73,8 @@ CREATE OPERATOR <replaceable>name</replaceable> ( </listitem> <listitem> <para> - The use of <literal>=&gt;</literal> as an operator name is deprecated. It may - be disallowed altogether in a future release. + The symbol <literal>=&gt;</literal> is reserved by the SQL grammar, + so it cannot be used as an operator name. </para> </listitem> </itemizedlist> [parent: 7da915e33abf]