Commit 4213e5f0 authored by Tom Lane's avatar Tom Lane

Add note that LIMIT without ORDER BY can produce outright nondeterministic

results.  Necessary due to introduction of syncscan patch.
parent a3e33899
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.100 2007/05/15 19:13:55 neilc Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.101 2007/06/08 20:26:18 tgl Exp $
PostgreSQL documentation
-->
......@@ -810,6 +810,14 @@ OFFSET <replaceable class="parameter">start</replaceable>
to deliver the results of a query in any particular order unless
<literal>ORDER BY</> is used to constrain the order.
</para>
<para>
It is even possible for repeated executions of the same <literal>LIMIT</>
query to return different subsets of the rows of a table, if there
is not an <literal>ORDER BY</> to enforce selection of a deterministic
subset. Again, this is not a bug; determinism of the results is
simply not guaranteed in such a case.
</para>
</refsect2>
<refsect2 id="SQL-FOR-UPDATE-SHARE">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment