Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6696082

Browse files
df7cbCommitfest Bot
authored and
Commitfest Bot
committed
doc: Some copy-editing around prefix operators
When postfix operators where dropped in 1ed6b89, the CREATE OPERATOR docs were not updated to make the RIGHTARG argument mandatory in the grammar. While at it, make the RIGHTARG docs more concise. Also, the operator docs were mentioning "infix" in the introduction, while using "binary" everywhere else.
1 parent 961553d commit 6696082

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/src/sgml/ref/create_operator.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PostgreSQL documentation
2323
<synopsis>
2424
CREATE OPERATOR <replaceable>name</replaceable> (
2525
{FUNCTION|PROCEDURE} = <replaceable class="parameter">function_name</replaceable>
26-
[, LEFTARG = <replaceable class="parameter">left_type</replaceable> ] [, RIGHTARG = <replaceable class="parameter">right_type</replaceable> ]
26+
[, LEFTARG = <replaceable class="parameter">left_type</replaceable> ] , RIGHTARG = <replaceable class="parameter">right_type</replaceable>
2727
[, COMMUTATOR = <replaceable class="parameter">com_op</replaceable> ] [, NEGATOR = <replaceable class="parameter">neg_op</replaceable> ]
2828
[, RESTRICT = <replaceable class="parameter">res_proc</replaceable> ] [, JOIN = <replaceable class="parameter">join_proc</replaceable> ]
2929
[, HASHES ] [, MERGES ]
@@ -88,8 +88,8 @@ CREATE OPERATOR <replaceable>name</replaceable> (
8888

8989
<para>
9090
For binary operators, both <literal>LEFTARG</literal> and
91-
<literal>RIGHTARG</literal> must be defined. For prefix operators only
92-
<literal>RIGHTARG</literal> should be defined.
91+
<literal>RIGHTARG</literal> must be defined. For prefix operators, only
92+
<literal>RIGHTARG</literal> must be defined.
9393
The <replaceable class="parameter">function_name</replaceable>
9494
function must have been previously defined using <command>CREATE
9595
FUNCTION</command> and must be defined to accept the correct number

doc/src/sgml/xoper.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<para>
2323
<productname>PostgreSQL</productname> supports prefix
24-
and infix operators. Operators can be
24+
and binary (or infix) operators. Operators can be
2525
overloaded;<indexterm><primary>overloading</primary><secondary>operators</secondary></indexterm>
2626
that is, the same operator name can be used for different operators
2727
that have different numbers and types of operands. When a query is

0 commit comments

Comments
 (0)