pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Werman <awerman2@hotmail.com>
To: Rosser Schwarz <rschwarz@totalcardinc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: atrocious update performance
Date: Tue, 16 Mar 2004 22:25:16 -0500
Message-ID: <Law10-OE28zi95HfqR7000142f8@hotmail.com> (raw)
References: <002301c40bb5$ad50db40$2500fa0a@CardServices.TCI.com>

Quick observations:

1. We have an explanation for what's going on, based on the message being
exactly 666 lines long :-)
2. I'm clueless on the output, but perhaps Tom can see something. A quick
glance shows that the strace seemed to run 27 seconds, during which it did:
  count| call
  -------|---------
      84 | _llseek
      40 | brk
      54 | close
      88 | open
      63 | read
in other words, nothing much (though it did *a lot* of opens and closes of
db files to do nothing ).

Can you do another strace for a few minutes against the actual update query
adding the -c/-t options and control-c out?

----- Original Message ----- 
From: "Rosser Schwarz" <rschwarz@totalcardinc.com>
To: "'Tom Lane'" <tgl@sss.pgh.pa.us>
Cc: <pgsql-performance@postgresql.org>
Sent: Tuesday, March 16, 2004 7:20 PM
Subject: Re: [PERFORM] atrocious update performance


while you weren't looking, Tom Lane wrote:

[trace]

`strace -p 21882` run behind the below query and plan ... below that.

# explain update account.cust set prodid = tempprod.prodid, subprodid =
tempprod.subprodid where origid = tempprod.debtid;



view thread (39+ messages)  latest in thread

Message-ID: <Law10-OE28zi95HfqR7000142f8@hotmail.com>
Permalink:  ../Law10-OE28zi95HfqR7000142f8@hotmail.com/
Also on:    postgresql.org/message-id/Law10-OE28zi95HfqR7000142f8@hotmail.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-performance@postgresql.org
  Cc: awerman2@hotmail.com, rschwarz@totalcardinc.com
  Subject: Re: atrocious update performance
  In-Reply-To: <Law10-OE28zi95HfqR7000142f8@hotmail.com>
  References: <002301c40bb5$ad50db40$2500fa0a@CardServices.TCI.com> <Law10-OE28zi95HfqR7000142f8@hotmail.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