| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | jason nordwick <jason(at)adapt(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Error: out of memory in create table as |
| Date: | 2006-08-03 19:37:07 |
| Message-ID: | 24021.1154633827@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
jason nordwick <jason(at)adapt(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-08-03 19:40:25 | Re: alter column type from boolean to char with default |
| Previous Message | Andrew Hammond | 2006-08-03 18:49:31 | Re: alter column type from boolean to char with default |