pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Denne <Stephen.Denne@datamail.co.nz>
Cc: pgsql-performance@postgresql.org
Subject: Re: 8.3rc1 Out of memory when performing update
Date: Thu, 24 Jan 2008 21:31:14 -0500
Message-ID: <21675.1201228274@sss.pgh.pa.us> (raw)
In-Reply-To: <F0238EBA67824444BC1CB4700960CB480482B525@dmpeints002.isotach.com>
References: <F0238EBA67824444BC1CB4700960CB480482B525@dmpeints002.isotach.com>

"Stephen Denne" <Stephen.Denne@datamail.co.nz> writes:
> 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?

Do you have any triggers or foreign keys on that table?  For that
matter, let's see its whole schema definition.

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <21675.1201228274@sss.pgh.pa.us>
Permalink:  ../21675.1201228274@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21675.1201228274@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, Stephen.Denne@datamail.co.nz
  Subject: Re: 8.3rc1 Out of memory when performing update
  In-Reply-To: <21675.1201228274@sss.pgh.pa.us>

* 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