Re: 10.2: high cpu usage on update statement - Mailing list pgsql-general

From Ron
Subject Re: 10.2: high cpu usage on update statement
Date
Msg-id 3b877cb8-17ee-e2c8-9c4a-9ed46987484c@gmail.com
Whole thread Raw
In response to 10.2: high cpu usage on update statement  (Kevin Wilkinson <w.kevin.wilkinson@gmail.com>)
List pgsql-general
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.

pgsql-general by date:

Previous
From: Kevin Wilkinson
Date:
Subject: 10.2: high cpu usage on update statement
Next
From: rihad
Date:
Subject: SIGTERM/SIGINT master/slave behavior