pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: Igor Chudov <ichudov@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres for a "data warehouse", 5-10 TB
Date: Sun, 11 Sep 2011 22:29:26 -0400
Message-ID: <20110912022926.GP12765@tamriel.snowman.net> (raw)
In-Reply-To: <CAGTBQpbTWV20==C8YjWHdRcUUab2YpFqhnv5q7zP7=SMSsaBfA@mail.gmail.com>
References: <CAMhtkAbK7saRO_Tayb1nS3YLWN=Wns=Ci47qs-3YbX0T2+hkpA@mail.gmail.com>
	<20110911230135.GN12765@tamriel.snowman.net>
	<CAMhtkAazH6wCduE23307L+bxLZf9Y+WyAoFTYGAvnZ+n4RkStQ@mail.gmail.com>
	<CAGTBQpbTWV20==C8YjWHdRcUUab2YpFqhnv5q7zP7=SMSsaBfA@mail.gmail.com>

* Claudio Freire (klaussfreire@gmail.com) wrote:
> I don't think you'd want that. Remember, work_mem is the amount of
> memory *per sort*.
> Queries can request several times that much memory, once per sort they
> need to perform.
> 
> You can set it really high, but not 60% of your RAM - that wouldn't be wise.

Oh, I dunno..  It's only used by the planner, so sometimes you have to
bump it up, especially when PG thinks the number of rows returned from
something will be a lot more than it really will be. :)

/me has certain queries where it's been set to 100GB... ;)

I agree that it shouldn't be the default, however.  That's asking for
trouble.  Do it for the specific queries that need it.

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (48+ messages)  latest in thread

Message-ID: <20110912022926.GP12765@tamriel.snowman.net>
Permalink:  ../20110912022926.GP12765@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20110912022926.GP12765@tamriel.snowman.net

 · 

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: sfrost@snowman.net, klaussfreire@gmail.com, ichudov@gmail.com
  Subject: Re: Postgres for a "data warehouse", 5-10 TB
  In-Reply-To: <20110912022926.GP12765@tamriel.snowman.net>

* 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