pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bert <biertie@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: slave restarts with kill -9 coming from somewhere, or nowhere
Date: Thu, 04 Apr 2013 02:17:58 -0400
Message-ID: <6146.1365056278@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFCtE1movdoU5fBnfoCi4gZpMsFr0v0+gsC_fA0_4gOyKk9oPg@mail.gmail.com>
References: <CAFCtE1nbVozMok5uLoKaPxkexWCkHJFtohN6MW8UwYqSX0UMvg@mail.gmail.com>
	<5382.1364925968@sss.pgh.pa.us>
	<CAFCtE1me=Jir4gjvYG4nYMfgFEFRi6vVqLT=4R6LbpzOw1K-7A@mail.gmail.com>
	<CAFCtE1mzXYXobSE84OnToJEe5r3ZBUc1D8gYnkaTARhrB+pZFw@mail.gmail.com>
	<CAFCtE1movdoU5fBnfoCi4gZpMsFr0v0+gsC_fA0_4gOyKk9oPg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Bert <biertie@gmail.com> writes:
> These are my memory settings:
> work_mem = 4GB

> How is it possible that one connection (query) uses all the ram? And how
> can I avoid it?

Uh ... don't do the above.  work_mem is the allowed memory consumption
per query step, ie per hash or sort operation.  A complex query can
easily use multiples of work_mem.

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (7+ messages)  latest in thread

Message-ID: <6146.1365056278@sss.pgh.pa.us>
Permalink:  ../6146.1365056278@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6146.1365056278@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, biertie@gmail.com
  Subject: Re: slave restarts with kill -9 coming from somewhere, or nowhere
  In-Reply-To: <6146.1365056278@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