pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Pavel Stehule <pavel.stehule@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Lars Aksel Opsahl <Lars.Opsahl@nibio.no>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: Re: SubtransControlLock and performance problems
Date: Tue, 18 Feb 2020 18:27:24 +0100
Message-ID: <a4cd767db6a12df2c924caa6bbdf59f8986f7bbc.camel@cybertec.at> (raw)
In-Reply-To: <CAFj8pRCu9vcKaznFQTsUGWhqA8G+FDbSLZrzK+kTPmZcC=kwkg@mail.gmail.com>
References: <HE1P189MB0266B070D1452B04A7C9F6D99D170@HE1P189MB0266.EURP189.PROD.OUTLOOK.COM>
	<eec0413432096c46c96580a7776f13a6f27a9858.camel@cybertec.at>
	<HE1P189MB026658CE70A359C45AB0F64F9D160@HE1P189MB0266.EURP189.PROD.OUTLOOK.COM>
	<61eeb178848bdc2e0dd6c81ce94f3ace7c1348ff.camel@cybertec.at>
	<CAFj8pRCLPy1U6W-+hTJMkN-+2NsJ=T8cuu0-+wMrrUXSVUETFg@mail.gmail.com>
	<9908.1581963796@sss.pgh.pa.us>
	<CAFj8pRCu9vcKaznFQTsUGWhqA8G+FDbSLZrzK+kTPmZcC=kwkg@mail.gmail.com>

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






view thread (13+ messages)  latest in thread

Message-ID: <a4cd767db6a12df2c924caa6bbdf59f8986f7bbc.camel@cybertec.at>
Permalink:  ../a4cd767db6a12df2c924caa6bbdf59f8986f7bbc.camel@cybertec.at/
Also on:    postgresql.org/message-id/a4cd767db6a12df2c924caa6bbdf59f8986f7bbc.camel@cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: laurenz.albe@cybertec.at, pavel.stehule@gmail.com, tgl@sss.pgh.pa.us, Lars.Opsahl@nibio.no, pgsql-performance@lists.postgresql.org
  Subject: Re: SubtransControlLock and performance problems
  In-Reply-To: <a4cd767db6a12df2c924caa6bbdf59f8986f7bbc.camel@cybertec.at>

* 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