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 1leKe1-0001zd-1E for pgsql-admin@arkaria.postgresql.org; Wed, 05 May 2021 16:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1leKdz-0002e9-Nh for pgsql-admin@arkaria.postgresql.org; Wed, 05 May 2021 16:45:03 +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 1leKdz-0002dW-EY for pgsql-admin@lists.postgresql.org; Wed, 05 May 2021 16:45:03 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1leKdx-0002NR-AQ for pgsql-admin@postgresql.org; Wed, 05 May 2021 16:45:02 +0000 Received: by mail-ed1-x536.google.com with SMTP id b17so2868325ede.0 for ; Wed, 05 May 2021 09:45:00 -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=KU4a2Ywbm2FoBwuzB4Hu7Ic/4Pkd6J9dGoKA005oWsE=; b=XRRGqplUot/RGM0vB7zghBXowiknS+f661/xewYL3R4tXrIjXTQSom5vEz6ObnIRVB XrhAOomzE9+YFtyP5oPgS6IHt9I9lds4SStZDdDcKaw5mhCO9bsYutXxOm4hVRvdowJM 85GR3wBmAk2Q2f9pV235C+Tgw888UWrlfKobmHmXe6QC15Co5Wdfej/AdyXGqffHNZS2 dNMiAfUjmDj2O+tJSw/Xm98mbH3vFEzp4DbpmG7zz6BBJHutnkvvPnNfNHgzwALX3fTf Rd/MxTIr9BS9BiJyHjx3/YVEYRssfzJa5pXtx0x0AD2YZqe+TYK//09PUa7fBKpnoNRg UAuQ== 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=KU4a2Ywbm2FoBwuzB4Hu7Ic/4Pkd6J9dGoKA005oWsE=; b=q6dg5ZHYE/zH8awCVMRI7WXTzayyzn1OmbaNUKsT2gwIJIZNZgeLrvAMOzGrOhb5cd QYs0dc25LvEX1/jeZ1nJVOMd5Flt9aZ1PTmQLHIRnT6Yo+v0tcUVSV5bCsOK7owmjxNj +QqzqTGtKKd3UTAfP2f9MQ8K34VOy9Oz6e1HjsN2w3jBxfVJ0ZzGeokITe4JDlhsKXAD icZitN7uwONnPkOEJGmA5lRdwgz7z6tTulQSpUTaww17rQ2y3PsQhXp0uUiT4JW6WOqT OHlcwz14xiEPOPRNwECFB2+qO3jgZggFUPvSGdL9BPGHBccomygOfD+i1NL4VAclrEsL r1Yg== X-Gm-Message-State: AOAM531gUwTKc0IQaok6L4vUrMECpHEhwOHdeOlMighoLlazyPZz3EC+ siAlpCLYR0kOrW7RROeimdg7vw== X-Google-Smtp-Source: ABdhPJwiFZOWdOEHmbyLhNoEIt19Iigq1ndYdGnCG5oclSZLxg6lN9a3c/Uy0nn4cEQxp2A3wE/A6Q== X-Received: by 2002:aa7:dbcd:: with SMTP id v13mr33142129edt.59.1620233098982; Wed, 05 May 2021 09:44:58 -0700 (PDT) Received: from localhost.localdomain (217-149-168-22.nat.highway.telekom.at. [217.149.168.22]) by smtp.gmail.com with ESMTPSA id y25sm3335373ejb.34.2021.05.05.09.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 09:44:58 -0700 (PDT) Message-ID: <6e8a24089781301efb1e06d0b0b0924439e10b4a.camel@cybertec.at> Subject: Re: WALWriteLocks From: Laurenz Albe To: Don Seiler , Vijaykumar Jain Cc: pgsql-admin Date: Wed, 05 May 2021 18:44:57 +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 Wed, 2021-05-05 at 11:25 -0500, Don Seiler wrote: > What I want to know is if there are other events that would contribute > to a WALWriteLock (eg writing to a data file or the postgresql.log file) > or is it 100% writing to the WAL file. You don't contribute to a lock... The documentation says (https://www.postgresql.org/docs/13/monitoring-stats.html#WAIT-EVENT-LOCK-TABLE): > WALWrite Waiting for WAL buffers to be written to disk. So it is contention while writing or flushing WAL. You can read the code for the details. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com