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

Commit7f2f798

Browse files
committed
Mention as a potential incompatibility the fact that SELECT DISTINCT, UNION,
etc are no longer guaranteed to produce sorted output; per gripe from IanBarwick. Also improve the release note entries about to_timestamp(), perBrendan Jurd.
1 parent6df6846 commit7f2f798

File tree

1 file changed

+39
-33
lines changed

1 file changed

+39
-33
lines changed

‎doc/src/sgml/release.sgml

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.629 2009/04/18 00:01:01 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.630 2009/04/19 15:49:34 tgl Exp $ -->
22
<!--
33

44
Typical markup:
@@ -333,28 +333,48 @@ do it for earlier branch release files.
333333

334334
<listitem>
335335
<para>
336-
Force child tables to inherit <literal>CHECK</>constraints from parents
337-
(Alex Hunsaker, Nikhil Sontakke, Tom)
336+
Change <command>TRUNCATE</> and <command>LOCK</>to
337+
apply to child tables of the specified table(s) (Peter)
338338
</para>
339339

340340
<para>
341-
Formerly it was possible to drop such a constraint from a child
342-
table, allowing rows that violate the constraint to be visible
343-
when scanning the parent table. This was deemed inconsistent,
344-
as well as contrary to SQL standard.
341+
These commands now accept an <literal>ONLY</> option that prevents
342+
processing child tables; this option must be used if the old
343+
behavior is needed.
345344
</para>
346345
</listitem>
347346

348347
<listitem>
349348
<para>
350-
Change <command>TRUNCATE</> and <command>LOCK</> to
351-
apply to child tables of the specified table(s) (Peter)
349+
<command>SELECT DISTINCT</> and
350+
<literal>UNION</>/<literal>INTERSECT</>/<literal>EXCEPT</>
351+
no longer always produce sorted output (Tom)
352352
</para>
353353

354354
<para>
355-
These commands now accept an <literal>ONLY</> option that prevents
356-
processing child tables; this option must be used if the old
357-
behavior is needed.
355+
Previously, these types of queries always removed duplicate rows
356+
by means of Sort/Unique processing (i.e., sort then remove adjacent
357+
duplicates). Now they can be implemented by hashing, which will not
358+
produce sorted output. If an application relied on the output being
359+
in sorted order, the recommended fix is to add an <literal>ORDER BY</>
360+
clause. As a short-term workaround, the previous behavior can be
361+
restored by disabling <literal>enable_hashagg</>, but that is a very
362+
performance-expensive fix. <literal>SELECT DISTINCT ON</> never uses
363+
hashing, however, so its behavior is unchanged.
364+
</para>
365+
</listitem>
366+
367+
<listitem>
368+
<para>
369+
Force child tables to inherit <literal>CHECK</> constraints from parents
370+
(Alex Hunsaker, Nikhil Sontakke, Tom)
371+
</para>
372+
373+
<para>
374+
Formerly it was possible to drop such a constraint from a child
375+
table, allowing rows that violate the constraint to be visible
376+
when scanning the parent table. This was deemed inconsistent,
377+
as well as contrary to SQL standard.
358378
</para>
359379
</listitem>
360380

@@ -512,6 +532,12 @@ do it for earlier branch release files.
512532
to more consistently report errors for invalid input (Brendan
513533
Jurd)
514534
</para>
535+
536+
<para>
537+
Previous versions would often ignore or silently misread input
538+
that did not match the format string. Such cases will now
539+
result in an error.
540+
</para>
515541
</listitem>
516542

517543
<listitem>
@@ -528,21 +554,6 @@ do it for earlier branch release files.
528554
</para>
529555
</listitem>
530556

531-
<listitem>
532-
<para>
533-
Require <function>to_timestamp()</> input to match
534-
meridian (<literal>AM</>/<literal>PM</>) and era
535-
(<literal>BC</>/<literal>AD</>) format designations with
536-
respect to presence of periods
537-
(Brendan Jurd)
538-
</para>
539-
540-
<para>
541-
For example, input value <literal>AD</> now does not match
542-
format string <literal>A.D.</>.
543-
</para>
544-
</listitem>
545-
546557
</itemizedlist>
547558

548559
</sect4>
@@ -584,12 +595,7 @@ do it for earlier branch release files.
584595

585596
<para>
586597
This means that these types of queries no longer automatically
587-
produce sorted output. The recommended response is to add an
588-
<literal>ORDER BY</> clause if needed. As a short-term workaround,
589-
the previous behavior can be restored by
590-
disabling <literal>enable_hashagg</>, but that is a very
591-
performance-expensive fix. <literal>SELECT DISTINCT ON</> never
592-
uses hashing, however, so its behavior is unchanged.
598+
produce sorted output.
593599
</para>
594600
</listitem>
595601

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp