pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Vijaykumar Jain <vijaykumarjain.github@gmail.com>
To: Don Seiler <don@seiler.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: WALWriteLocks
Date: Thu, 29 Apr 2021 20:52:03 +0200
Message-ID: <f2fee5feab7766f11814535d4244bb40c18a7b03.camel@cybertec.at> (raw)
In-Reply-To: <CAM+6J95J=U3LL=bx23WW_6P8naZ=BcoScuhTWG07f423W+ZT6A@mail.gmail.com>
References: <CAHJZqBDXNEOZDYQXB+xUK2ie-Tjzmn72RHVec-NsCNyU4TeydQ@mail.gmail.com>
	<63f24de419af530402a16a97c5e5ec977f4092dc.camel@cybertec.at>
	<CAHJZqBDHZyPCXjnOhS2C9YoBTaJ0_e47M_q7pob+F0VT_B48fQ@mail.gmail.com>
	<CAM+6J94EyTQLOk8EQ2W8kTnS1Ez5kM9a-udao8U5FggK5_mhdw@mail.gmail.com>
	<CAM+6J95J=U3LL=bx23WW_6P8naZ=BcoScuhTWG07f423W+ZT6A@mail.gmail.com>

On Fri, 2021-04-30 at 00:13 +0530, Vijaykumar Jain wrote:
> I tried the below, but i could not simulate WALWriteLock waits.
> 
> create table foo(id int)
> 
>  for i in {1..10}; do  psql -c "begin transaction; insert into foo select 1 from generate_series(1, 1000); commit;" & done

Perhaps you should do simple inserts of one row and run that script
with a pgbench and lots of clients.

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






view thread (18+ messages)  latest in thread

Message-ID: <f2fee5feab7766f11814535d4244bb40c18a7b03.camel@cybertec.at>
Permalink:  ../f2fee5feab7766f11814535d4244bb40c18a7b03.camel@cybertec.at/
Also on:    postgresql.org/message-id/f2fee5feab7766f11814535d4244bb40c18a7b03.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-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, vijaykumarjain.github@gmail.com, don@seiler.us
  Subject: Re: WALWriteLocks
  In-Reply-To: <f2fee5feab7766f11814535d4244bb40c18a7b03.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