Re: Weird index or sort behaviour - Mailing list pgsql-performance

From Tom Lane
Subject Re: Weird index or sort behaviour
Date
Msg-id 24785.1250614177@sss.pgh.pa.us
Whole thread Raw
In response to Re: Weird index or sort behaviour  (Matthew Wakeling <matthew@flymine.org>)
Responses Re: Weird index or sort behaviour
List pgsql-performance
Matthew Wakeling <matthew@flymine.org> writes:
> Very clever. Yes, that is what is happening. I'm surprised that the system
> doesn't buffer the inner side to avoid having to rescan each time, but
> then I guess you would have problems if the buffer grew larger than
> memory.

Well, it does consider adding a Materialize node for that purpose,
but in this case it evidently thought a sort was cheaper.

            regards, tom lane

pgsql-performance by date:

Previous
From: Matthew Wakeling
Date:
Subject: Re: Weird index or sort behaviour
Next
From: Tom Lane
Date:
Subject: Re: Weird index or sort behaviour