pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jason nordwick <jason@adapt.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Error: out of memory in create table as
Date: Thu, 03 Aug 2006 15:37:07 -0400
Message-ID: <24021.1154633827@sss.pgh.pa.us> (raw)
In-Reply-To: <44D22CA7.3060901@adapt.com>
References: <44D22CA7.3060901@adapt.com>

jason nordwick <jason@adapt.com> writes:
> ERROR:  out of memory
> DETAIL:  Failed on request of size 856.
> CONTEXT:  SQL statement "create table gwt as select * from gworktick"
> PL/pgSQL function "processadd" line 30 at SQL statement

What PG version?  What does "explain select * from gworktick" say?
Can you get explain analyze results, or does that fail with the same
error?

> work_mem = 512000			# min 64, size in KB

This could well be excessive for complicated views.  You're promising
that you can provide half a gig of RAM for *each* sort or hash in the
plan.

			regards, tom lane



view thread (2+ messages)

Message-ID: <24021.1154633827@sss.pgh.pa.us>
Permalink:  ../24021.1154633827@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24021.1154633827@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jason@adapt.com
  Subject: Re: Error: out of memory in create table as
  In-Reply-To: <24021.1154633827@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