Skip to content

Commit d9d5d5f

Browse files
danielgustafssonhackorum
authored andcommitted
doc: add PARALLEL option to old syntax for CREATE AGGREGATE
The old pre-8.2 syntax for CREATE AGGREGATE also support PARALLEL, even though it's required to be quoted as PARALLEL is an unreserved keyword.
1 parent 1d1d7b0 commit d9d5d5f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/src/sgml/ref/create_aggregate.sgml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ CREATE [ OR REPLACE ] AGGREGATE <replaceable class="parameter">name</replaceable
8080
[ , MFINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE } ]
8181
[ , MINITCOND = <replaceable class="parameter">minitial_condition</replaceable> ]
8282
[ , SORTOP = <replaceable class="parameter">sort_operator</replaceable> ]
83+
[ , "PARALLEL" = { SAFE | RESTRICTED | UNSAFE } ]
8384
)
8485
</synopsis>
8586
</refsynopsisdiv>
@@ -641,6 +642,10 @@ SELECT col FROM tab ORDER BY col USING sortop LIMIT 1;
641642
functions are not consulted by the planner, only the marking of the
642643
aggregate itself.
643644
</para>
645+
<para>
646+
Note that when using the old syntax, <literal>"PARALLEL"</literal> must
647+
be quoted.
648+
</para>
644649
</listitem>
645650
</varlistentry>
646651

0 commit comments

Comments
 (0)