*** a/doc/src/sgml/ref/select.sgml --- b/doc/src/sgml/ref/select.sgml *************** *** 1281,1287 **** ROLLBACK TO s; ! It is possible for a SELECT command using ORDER BY and FOR UPDATE/SHARE to return rows out of order. This is because ORDER BY is applied first. The command sorts the result, but might then block trying to obtain a lock --- 1281,1288 ---- ! It is possible for a SELECT command running at the READ ! COMMITTED transaction isolation level and using ORDER BY and FOR UPDATE/SHARE to return rows out of order. This is because ORDER BY is applied first. The command sorts the result, but might then block trying to obtain a lock *************** *** 1302,1307 **** SELECT * FROM (SELECT * FROM mytable FOR UPDATE) ss ORDER BY column1; --- 1303,1315 ---- only if concurrent updates of the ordering columns are expected and a strictly sorted result is required. + + + At the REPEATABLE READ or SERIALIZABLE + transaction isolation level this would cause a serialization failure (with + a SQLSTATE of '40001'), so there is + no possibility of receiving rows out of order under these isolation levels. +