Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgqiG-00EAGO-Tq for pgsql-performance@arkaria.postgresql.org; Sat, 08 Feb 2025 19:42:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tgqiE-0091U5-EG for pgsql-performance@arkaria.postgresql.org; Sat, 08 Feb 2025 19:41:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgqiE-0091Tx-1F for pgsql-performance@lists.postgresql.org; Sat, 08 Feb 2025 19:41:58 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tgqiB-003zLa-1y for pgsql-performance@lists.postgresql.org; Sat, 08 Feb 2025 19:41:56 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-6f47ed1f40dso24697297b3.1 for ; Sat, 08 Feb 2025 11:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739043715; x=1739648515; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iSZHOmx2HgSGPwu+NIq/ZVQlz+69CmzyM4wALXtoDxU=; b=g4jARCjEFYLvky1EXjJ/Oz9dOXbmz+UQsQ6CjaKnji7biJ7mrVVBu2g0wlb5NA+8fp 27B3QS2QOhXSxAyNQ88J2B02n+8HuWTCpN3Su+YaHcI+HVK/XvTqTKuM1qm8uoL1FLcE NEU89rp8t5TGHbP1lmPjK2HAYrGl2EX6SmP6jUgCk9dISPQOe3idBmxJOp1/sqqPbcda forw8MHv8G/fidE6li6wj6d6gzvaHNdS2wxrx1N2qbrCf0oHNbbmqxTG6EIXgNzB1bP3 nS8nH50lXcqYZuot16/NEZjIA/3b0OUWjr72KleV5IfqbuIgEiyZnunfiH6N62ry/Jh7 NfuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739043715; x=1739648515; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iSZHOmx2HgSGPwu+NIq/ZVQlz+69CmzyM4wALXtoDxU=; b=RgzpqVAzxxBxGq/3Z6jA7YeYoAy/t5kuDHkW1CBFXpeOQan1gqdliUl0UjnCuEUHqb 2/mXtK4Zch7E+n2/nHO7luLotSn0pbQ/ccUq03mMn8reaRPe5TnfmYV5wUdzto+fTvTn 3V93gZos2lqG89rsxxe1nxUiExaUwqUOuzh/N0kt8BLCfIIRkFt/4mvdakqq2VgiXWxl M/1VTM6eTlzFGSU+lE7bXPwQsDBE3k0vffE8sBKI7HSgSEzeSHUTsPzuOkt1V1o1wOoi rNRu9lEFnltS4vY3O6CyTvkDVoe5AND5XFESp96Ty0YjgYe00Dt4OJUv69e1AygFfi8W U+Vg== X-Forwarded-Encrypted: i=1; AJvYcCXJHt1uCROMfr0l5h3iyJCQOCCLIPGBPlg9X+p7UNVgLcMBpEhs7dm06QcQSc4k0r60I8pYI1Ha8Q7pUrEFYscERg==@lists.postgresql.org X-Gm-Message-State: AOJu0YwvZTBl2SJMHsWgLGDUKP0gxXSht3mi7dPvw/pOAMDmcAu+JDgh BhOLkttEyRH0ZM2H4+086gyYDZRJUPpU6yRcWKiWHyVzcq/XcTzGtYN/R8A9wELEDPDKvZwM9yI w3ilu6vGD8r5XHHeLBsRS83uVbmg= X-Gm-Gg: ASbGncsbw1/w8lb8Cp5O+p0Yepr3VbUHxR5HfpYXfwR9myLVk60wab9OtnPIAHl39BU 3FlrATZSuPZffTyyzwtVfOYmBU6WjOmjlqnoZAdlxTTi2lMHRo0X3cVKNulIrntQtEb0evwHD2A == X-Google-Smtp-Source: AGHT+IEZj0FFF09WP6ZNbe4MZsHfeIXI+ftC9dcrfG6kvL1oyFn6iRgFgFJ5gioymIcJLXuLQSGqWJ7SCSj+Kkg/XyE= X-Received: by 2002:a05:690c:368b:b0:6e5:aaf7:68d0 with SMTP id 00721157ae682-6f9b2879e7fmr79856557b3.18.1739043714982; Sat, 08 Feb 2025 11:41:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: kyle Hailey Date: Sat, 8 Feb 2025 11:41:18 -0800 X-Gm-Features: AWEUYZmLp50uFsoGzMw8o8DrPsrku24eUyuIBvx0koLC-GPiIL0cAF-1ab2pups Message-ID: Subject: Re: lwlock:LockManager wait_events To: SAMEER KUMAR Cc: James Pang , pgsql-performance@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000e16a29062da6aa98" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e16a29062da6aa98 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable late to the game here but this might be of interest: https://ardentperf.com/2024/03/03/postgres-indexes-partitioning-and-lwlockl= ockmanager-scalability/ On Fri, Oct 25, 2024 at 5:10=E2=80=AFAM SAMEER KUMAR wrote: > > > On Fri, 25 Oct 2024, 14:36 James Pang, wrote: > >> experts, >> we faced into a lot of lwlock:LockManager wait-events , all of thes= e >> queries are "select ..." , there are other several session are doing DM= L, >> insert/update/delete on same table. Did these DML transactions holding >> "transactionid" and "tuple" lock blocking "select" on lwlock:LockManager= ? >> > > > Which version of PostgreSQL? > Are these all same query or variant of same query (with different > parameters)? > > What's the schema (you can redact column names) for the tables involved i= n > the select query which is blocked/waiting on lock_manager? > > >> Thanks, >> >> James >> > --000000000000e16a29062da6aa98 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Oct 25, 2024 at 5:10=E2=80=AFAM SAMEE= R KUMAR <sameer.kasi200x@gm= ail.com> wrote:


On Fri, 25 Oct 2024, 14:36 James Pang, <jamespang886@gmai= l.com> wrote:
experts,
=C2=A0 =C2=A0 we faced into a lot of=C2= =A0 lwlock:LockManager wait-events , all of these queries=C2=A0are "se= lect ..." ,=C2=A0 there are other several session are doing DML, inser= t/update/delete on same table.=C2=A0 =C2=A0Did these DML transactions holdi= ng "transactionid" and "tuple" lock blocking=C2=A0"= ;select" on lwlock:LockManager ?=C2=A0=C2=A0
<= /div>


Which version of PostgreSQL?
Are these all= same query or variant of same query (with different parameters)?=C2=A0

What's the schema (you = can redact column names) for the tables involved in the select query which = is blocked/waiting on lock_manager?=C2=A0

=

Thanks,
=
James
--000000000000e16a29062da6aa98--