Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcBlj-0003e5-QI for pgsql-admin@arkaria.postgresql.org; Thu, 29 Apr 2021 18:52:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lcBli-0005en-Bk for pgsql-admin@arkaria.postgresql.org; Thu, 29 Apr 2021 18:52:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcBli-0005eg-4D for pgsql-admin@lists.postgresql.org; Thu, 29 Apr 2021 18:52:10 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lcBlf-0003wX-4j for pgsql-admin@postgresql.org; Thu, 29 Apr 2021 18:52:08 +0000 Received: by mail-wm1-x32c.google.com with SMTP id n3-20020a05600c4f83b02901425630b2c2so4790548wmq.1 for ; Thu, 29 Apr 2021 11:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=fnqUHs8RZt6uLuQpePqaKBofb5Tx+DSs7BsCbJLSHBo=; b=u4voEr3AHcVFU1guXZw92rVfWVreC7owMlekVJy4Or88rsdZYD1fHv/ZEWfUfOcglO 817twSU0CLI23KByhRgVLCMeolYfPQXHNRLUFfrrIqCIpBxv/Bwj/wl2xymW8IIK8i+c oFmlsl4jzJQlslSnzYKWNkrlIrRl+KaAnCli5qSAc/rYBMMmOeS9Sdiz+DGscRYgryeF PGoWWtL5KD0DcyJ7L4FhKP4y+5EOuE5dV1Tu/MbXcskT/NgoOuId1k9ngW2lydzVRdkO vKRpQYEvLlim2cB25wUlnHn7qFgBCEN+u0JxF+9fD0uP1fTBrSi9XKpDzknx4evfQa6w +HJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=fnqUHs8RZt6uLuQpePqaKBofb5Tx+DSs7BsCbJLSHBo=; b=FEvnT341EnxMcaWH1BKbKFdAB1+pgxkloZEDupiTDwq6z7rEZZU8iPdelGmLPB8j9/ PeSkNZyQuTlvQ0wNT7LdVJByv0W5KlEWiaAXcXkNU4aAGJ3YjVziGY9UjcUbLg7cVPot rLfvSa0cAHUYrY5NmfEyRqv4Pb+JaCNNxk2ny0O2wE1RH61i5PGZjO5AEZFM8VscAg+x G8gpegqKCXoOIH5/4Dvzl20ktAocCXA/Ne4Ysy7ffmRODUKeYN9MGRYaP7cVY4tRahAY 8PENw+ciRop+xx7uyU71qtYxKmbc6haVYAwDIGcadY62cdJzIHHRy2Rzf1tUVRKOk5ZZ iK6w== X-Gm-Message-State: AOAM530pLx82+YUOhgUQmAlC0umBYNixvnCdkTuN+txugDCFMraVTahW 4BHV7KWwaArNiRr00kExMITcNw== X-Google-Smtp-Source: ABdhPJzXcI8HCTkhcH/55CcgPVCo1+LUhIRZvVjf0J3KTY/JJj62oy3i8tzxao803GWiQDP1+tC8gw== X-Received: by 2002:a7b:c20e:: with SMTP id x14mr1678833wmi.57.1619722324175; Thu, 29 Apr 2021 11:52:04 -0700 (PDT) Received: from localhost.localdomain (91-115-149-68.adsl.highway.telekom.at. [91.115.149.68]) by smtp.gmail.com with ESMTPSA id x8sm5970158wru.70.2021.04.29.11.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 11:52:03 -0700 (PDT) Message-ID: Subject: Re: WALWriteLocks From: Laurenz Albe To: Vijaykumar Jain , Don Seiler Cc: pgsql-admin Date: Thu, 29 Apr 2021 20:52:03 +0200 In-Reply-To: References: <63f24de419af530402a16a97c5e5ec977f4092dc.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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