pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lampa <lampacz@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6186: out of memory while analyze
Date: Wed, 31 Aug 2011 17:11:50 -0400
Message-ID: <3940.1314825110@sss.pgh.pa.us> (raw)
In-Reply-To: <CAG_XuNVY-dqhJHLj9WTuPqnA7Uta=+2HfUdqenuoRxnXDa5-Jg@mail.gmail.com>
References: <201108301120.p7UBKKoJ094519@wwwmaster.postgresql.org>
	<25153.1314732080@sss.pgh.pa.us>
	<CAG_XuNVY-dqhJHLj9WTuPqnA7Uta=+2HfUdqenuoRxnXDa5-Jg@mail.gmail.com>

Lampa <lampacz@gmail.com> writes:
> default_statistics_target = 8000        # range 1-10000

> Problem seems to be in default_statistics_target values from approx
> 6300. Up to 6300 analyze works but on another machine (64bit) works
> 10000 without problems on same but larger table (more data)

Well, there's a reason why the default value of that parameter is 100
and not 10000 ;-).  The larger it is, the more memory space it's going
to take to do an ANALYZE.  I don't see any bug here, you're just trying
to do more than you can do in a 32-bit machine.

I guess we could improve the documentation of default_statistics_target
to point out that it costs not only more time but more memory in
ANALYZE.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <3940.1314825110@sss.pgh.pa.us>
Permalink:  ../3940.1314825110@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3940.1314825110@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lampacz@gmail.com
  Subject: Re: BUG #6186: out of memory while analyze
  In-Reply-To: <3940.1314825110@sss.pgh.pa.us>
  References: <201108301120.p7UBKKoJ094519@wwwmaster.postgresql.org> <25153.1314732080@sss.pgh.pa.us> <CAG_XuNVY-dqhJHLj9WTuPqnA7Uta=+2HfUdqenuoRxnXDa5-Jg@mail.gmail.com> <3940.1314825110@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