Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc23b6fa

Browse files
committed
Marginal editorial improvements for array_agg patch documentation.
1 parent312d517 commitc23b6fa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.458 2008/11/1315:59:50 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.459 2008/11/1323:01:09 tgl Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -8387,8 +8387,8 @@ SELECT xmlagg(x) FROM test;
83878387
</para>
83888388

83898389
<para>
8390-
The influence the order of the concatenation, something like the
8391-
following approachto sort the input valuescan be used:
8390+
To determine the order of the concatenation, something like the
8391+
following approach can be used:
83928392

83938393
<screen><![CDATA[
83948394
SELECT xmlagg(x) FROM (SELECT * FROM test ORDER BY y DESC) AS tab;
@@ -9772,19 +9772,19 @@ SELECT count(*) FROM sometable;
97729772
and <function>xmlagg</function>, as well as similar user-defined
97739773
aggregate functions, produce meaningfully different result values
97749774
depending on the order of the input values. In the current
9775-
implementation, the order of theconcatenation is in principle
9776-
undefined. Makingthe input valuesto be sortedin some other way
9775+
implementation, the order of theinput is in principle unspecified.
9776+
Supplyingthe input valuesfrom a sortedsubquery
97779777
will usually work, however. For example:
97789778

97799779
<screen><![CDATA[
9780-
SELECT xmlagg(x) FROM (SELECT* FROM test ORDER BY y DESC) AS tab;
9780+
SELECT xmlagg(x) FROM (SELECTx FROM test ORDER BY y DESC) AS tab;
97819781
]]></screen>
97829782

9783-
But thisapproach is notguaranteed to workinall situations, and
9784-
it is not strictly SQL-conforming. A future version of PostgreSQL
9785-
might provide an additional feature to control the order in a
9786-
better-defined way (<literal>xmlagg(expr ORDER BY expr, expr,
9787-
...</literal>).
9783+
But thissyntax is notallowedinthe SQL standard, and is
9784+
not portable to other database systems. A future version of
9785+
<productname>PostgreSQL</>might provide an additional feature to control
9786+
the order in abetter-defined way (<literal>xmlagg(expr ORDER BY expr, expr,
9787+
...)</literal>).
97889788
</para>
97899789

97909790
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp