Re: Error: out of memory in create table as - Mailing list pgsql-sql

From Tom Lane
Subject Re: Error: out of memory in create table as
Date
Msg-id 24021.1154633827@sss.pgh.pa.us
Whole thread Raw
In response to Error: out of memory in create table as  (jason nordwick <jason@adapt.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: jason nordwick
Date:
Subject: Error: out of memory in create table as
Next
From: Tom Lane
Date:
Subject: Re: alter column type from boolean to char with default