Re: SubtransControlLock and performance problems - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: SubtransControlLock and performance problems
Date
Msg-id 20200219152353.GA2663@alvherre.pgsql
Whole thread Raw
In response to Re: SubtransControlLock and performance problems  (Lars Aksel Opsahl <Lars.Opsahl@nibio.no>)
Responses Re: SubtransControlLock and performance problems  (Lars Aksel Opsahl <Lars.Opsahl@nibio.no>)
List pgsql-performance
On 2020-Feb-19, Lars Aksel Opsahl wrote:

> With the values above I did see same performance problems and we ended
> with a lot of subtransControlLock.
> 
> So I started to change the code based on your feedbacks.
> 
> - What seems to work very good in combination with a catch exception
> and retry pattern is to insert the data in to separate table for each
> job. (I the current testcase we reduced the number of
> subtransControlLock from many hundreds to almost none.)

I think at this point your only recourse is to start taking profiles to
see where the time is going.  Without that, you're just flying blind and
whatever you do will not necessarily move your needle at all.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-performance by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: tablespace to benefit from ssd ?
Next
From: Andres Freund
Date:
Subject: Re: How to avoid UPDATE performance degradation in a transaction