Re: Out of Memory Error on Insert

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Priest <mark(dot)priest(at)computer(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Out of Memory Error on Insert
Date: 2011-10-18 14:50:23
Message-ID: 4784.1318949423@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Priest <mark(dot)priest(at)computer(dot)org> writes:
> I am getting an Out of Memory error in my server connection process
> while running a large insert query.

> Postgres version: "PostgreSQL 8.2.16 on i686-pc-mingw32, compiled by
> GCC gcc.exe (GCC) 3.4.2 (mingw-special)"
> OS: Windows 7 Professional (v.6.1, build 7601 service pack 1)
> The OS is 64 bit but the postgres app is a 32-bit app and I run out of
> memory and the server process crashes as soon as I hit 2 GB of memory.

FWIW, I see excessive memory consumption for this query in 8.2.x but
not in 8.3.x and later. Some desultory investigation suggests that
the change is associated with rangetable representation improvements
that were made in 8.3. Since 8.2.x is staring hard at its EOL date,
I suggest now might be a good time to update to a more recent release
series.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Viktor Rosenfeld 2011-10-18 15:54:30 Re: Use true and false when bulk-exporting boolean data
Previous Message Frédéric Rejol 2011-10-18 14:27:16 pg_dump not including custom CAST based on table types