David Fetter <david(at)fetter(dot)org> writes:
> * It's going to a lot of trouble to allow for the possibility of both
> unordered results and of duplicate lines. If we disallow duplicate
> lines in unordered result sets, we can get a big speed gain by using
> hash-based comparisons.
Why not just sort the lines and compare?
regards, tom lane