Re: Out of Memory Error on Insert - Mailing list pgsql-general

From Tom Lane
Subject Re: Out of Memory Error on Insert
Date
Msg-id 4784.1318949423@sss.pgh.pa.us
Whole thread Raw
In response to Out of Memory Error on Insert  (Mark Priest <mark.priest@computer.org>)
List pgsql-general
Mark Priest <mark.priest@computer.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

pgsql-general by date:

Previous
From: salah jubeh
Date:
Subject: Re: many sql file and one transaction
Next
From: Viktor Rosenfeld
Date:
Subject: Re: Use true and false when bulk-exporting boolean data