Michael Paquier <mich...@paquier.xyz> writes: > Aren't extra ORDER BY clauses the usual response to tuple ordering? I > really think that we should be more aggressive with that.
I'm not excited about that. The traditional argument against it is that if we start testing ORDER BY queries exclusively (and it would have to be pretty nearly exclusively, if we were to take this seriously) then we'll lack test coverage for queries without ORDER BY. Also, regardless of whether you think that regression test results can be kicked around at will, we are certainly going to hear complaints from users if traditional behaviors like "inserting N rows into a new table, then selecting them, gives those rows back in the same order" go away. Recall that we had to provide a way to disable the syncscan optimization because some users complained about the loss of row-ordering consistency. regards, tom lane