pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jie Liang <jie@stbernard.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: 3 million record updates
Date: Fri, 4 Oct 2002 17:05:46 -0700
Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com> (raw)

Tom,

I tried to update a table with ~3 million records a set=null,
it takes a hour unfinished. I checked my vmstat, it shown that disk where
the WAL written
was 100% busy, so I think we reach the bottleneck. What else parameters I
can turn?
or I misconfigured?

my current pg conf:

shared_buffers=60000
wal_buffers=8
sort_mem=512
vacuum_mem=8192

OS conf:
shmmax=535404544
shmmin=1
shmmni=192
shmseg=256
shmall=130714
shm_use_phys=1

OS: FreeBSD-4.6.2 
DB: Postgresql-7.2.1

Thanks.

Jie Liang



view thread (2+ messages)  latest in thread

Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com>
Permalink:  ../7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com/
Also on:    postgresql.org/message-id/7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jie@stbernard.com, tgl@sss.pgh.pa.us
  Subject: Re: 3 million record updates
  In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com>
  References: <7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com>

* 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