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

From Laurenz Albe
Subject Re: SubtransControlLock and performance problems
Date
Msg-id a4cd767db6a12df2c924caa6bbdf59f8986f7bbc.camel@cybertec.at
Whole thread Raw
In response to Re: SubtransControlLock and performance problems  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: SubtransControlLock and performance problems  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: SubtransControlLock and performance problems  (Lars Aksel Opsahl <Lars.Opsahl@nibio.no>)
List pgsql-performance
On Mon, 2020-02-17 at 19:41 +0100, Pavel Stehule wrote:
> I tested 
> 
> CREATE OR REPLACE FUNCTION public.fx(integer)
>  RETURNS void
>  LANGUAGE plpgsql
> AS $function$
> begin
>   for i in 1..$1 loop
>   begin
>     insert into foo values(i);
> exception when others then
>   raise notice 'yyy';
> end;
> end loop;
> end;
> $function$
> 
> and I don't see any significant difference between numbers less than 64 and higher

Did you have several concurrent sessions accessing the rows that others created?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-performance by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: SubtransControlLock and performance problems
Next
From: Justin Pryzby
Date:
Subject: Re: DB running out of memory issues after upgrade