Re: Disk usage for intermediate results in join - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Disk usage for intermediate results in join
Date
Msg-id 531F0015.4000200@vmware.com
Whole thread Raw
In response to Disk usage for intermediate results in join  (Parul Lakkad <parul.lakkad@gmail.com>)
List pgsql-hackers
On 03/11/2014 01:24 PM, Parul Lakkad wrote:
> Hi,
>
> I am trying to figure out when disk is used to store intermediate results
> while performing joins in postgres.
>
> According my findings using 'explain analyse ' only merge sort uses disk.
> Can anyone please throw some more light on this?

Hash joins will also spill to disk if the hash-side of the join is large 
enough. The planner usually tries to avoid it, but sometimes it happens.

- Heikki



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [ISSUE] pg_dump: schema with OID 0 does not exist
Next
From: Alvaro Herrera
Date:
Subject: Re: [bug fix] pg_ctl always uses the same event source