pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Roberts, Jon <Jon.Roberts@asurion.com>
Cc: cgallant@gmail.com
Cc: pgsql-performance@postgresql.org
Subject: Re: 8.3rc1 Out of memory when performing update
Date: Fri, 25 Jan 2008 19:45:43 +0100
Message-ID: <479A2E57.3060405@hagander.net> (raw)
In-Reply-To: <1A6E6D554222284AB25ABE3229A927627154CE@nrtexcus702.int.asurion.com>
References: <F0238EBA67824444BC1CB4700960CB480482B525@dmpeints002.isotach.com>
	<20080124231433.2f312549@pmanson>
	<20080125183246.GB32623@soleauthority.ca>
	<1A6E6D554222284AB25ABE3229A927627154CE@nrtexcus702.int.asurion.com>

Roberts, Jon wrote:
>> Subject: Re: [PERFORM] 8.3rc1 Out of memory when performing update
>>
>>>> A simple update query, over roughly 17 million rows, populating a
>>>> newly added column in a table, resulted in an out of memory error
>>>> when the process memory usage reached 2GB. Could this be due to a
>>>> poor choice of some configuration parameter, or is there a limit
> on
>>>> how many rows I can update in a single statement?
>>>>
>>>    I believe that it is plataform problem. Because on *nix this
> limit
>>> don't occur. But I don't specialist Windows.
>> On most Windows Servers(except for database edition and a few other
>> variants), 2Gb is the most you can address to a single
>> process without booting the machine with a special parameter called
> \3G
>> which will allow for allocating up to 3Gb per process.  That is the
>> limit unless you get special versions of windows server 2003 as far as
> I
>> know.  If you do a google search on \3G with windows you will find
> what
>> I am refering too.
> 
> Windows 32 bit is limited to 2 or 3 GB as you state but 64 bit Windows
> isn't.  32 bit Linux has similar limits too.

Well, PostgreSQL on Windows is a 32-bit binary, so the limit applies to 
this case.

//Magnus



view thread (13+ messages)  latest in thread

Message-ID: <479A2E57.3060405@hagander.net>
Permalink:  ../479A2E57.3060405@hagander.net/
Also on:    postgresql.org/message-id/479A2E57.3060405@hagander.net

 · 

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-performance@postgresql.org
  Cc: magnus@hagander.net, Jon.Roberts@asurion.com, cgallant@gmail.com
  Subject: Re: 8.3rc1 Out of memory when performing update
  In-Reply-To: <479A2E57.3060405@hagander.net>

* 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