pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: 10.2: high cpu usage on update statement
Date: Sat, 6 Apr 2019 00:51:32 -0500
Message-ID: <3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.com> (raw)
In-Reply-To: <214e8730-17b5-16be-afd6-8b6175dd15ab@gmail.com>
References: <214e8730-17b5-16be-afd6-8b6175dd15ab@gmail.com>

On 4/5/19 5:45 PM, Kevin Wilkinson wrote:
> on 10.2, we're seeing very high cpu usage when doing an update statement 
> on a relatively small table (1GB). one of the updated columns is text, 
> about 1k bytes. there are four threads doing similar updates concurrently 
> to the same table (but different rows). each thread does an update about 
> every two seconds, i.e., the tables gets updated every 1/2 second. the 
> stack trace below shows the process *stuck in reading the update results*. 
> this seems very odd. has anyone seen something similar?  this is a modest 
> server of 8 cores, all of which are 90% busy.

Does the table have supporting indexes?

-- 
Angular momentum makes the world go 'round.

view thread (4+ messages)  latest in thread

Message-ID: <3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.com>
Permalink:  ../3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.com/
Also on:    postgresql.org/message-id/3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.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-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: 10.2: high cpu usage on update statement
  In-Reply-To: <3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.com>
  References: <214e8730-17b5-16be-afd6-8b6175dd15ab@gmail.com> <3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.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