pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaime Casanova <jcasanov@systemguards.com.ec>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: decibel <decibel@decibel.org>
Cc: psql performance list <pgsql-performance@postgresql.org>
Subject: Re: [PERFORMANCE] work_mem vs temp files issue
Date: Mon, 11 Jan 2010 16:36:22 -0500
Message-ID: <19928.1263245782@sss.pgh.pa.us> (raw)
In-Reply-To: <3073cc9b1001111311k7af04b71gd4104e07913bc349@mail.gmail.com>
References: <3073cc9b0908191745o3dc63d95q6b9308ef5bd199f2@mail.gmail.com>
	<B43373EF-4CFC-4643-AB6E-5BC0D4A7EB58@decibel.org>
	<25315.1252881420@sss.pgh.pa.us>
	<3073cc9b1001111015t3888cbbex7171d61b952218da@mail.gmail.com>
	<603c8f071001111107v75276375g4d626dfc0efd8dc4@mail.gmail.com>
	<3073cc9b1001111114j7ddacd56p8966f9d61997a8b@mail.gmail.com>
	<3073cc9b1001111116x53427c9bm1e448128a3b4f6c6@mail.gmail.com>
	<18803.1263241120@sss.pgh.pa.us>
	<3073cc9b1001111311k7af04b71gd4104e07913bc349@mail.gmail.com>

Jaime Casanova <jcasanov@systemguards.com.ec> writes:
> the temp files shoul be coming from hash operations but AFAICS the
> files are small and every hash operation should be using until
> work_mem memory, right?

No, when a hash spills to disk the code has to guess the partition sizes
(number of buckets per partition) in advance.  So it wouldn't be at all
surprising if the actual sizes come out substantially different from
work_mem.

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <19928.1263245782@sss.pgh.pa.us>
Permalink:  ../19928.1263245782@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19928.1263245782@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jcasanov@systemguards.com.ec, robertmhaas@gmail.com, decibel@decibel.org
  Subject: Re: [PERFORMANCE] work_mem vs temp files issue
  In-Reply-To: <19928.1263245782@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox