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 1pyz6i-0001Xz-Gb for pgsql-admin@arkaria.postgresql.org; Tue, 16 May 2023 18:09:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pyz6h-0003Xk-0O for pgsql-admin@arkaria.postgresql.org; Tue, 16 May 2023 18:09:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyz6g-0003XY-IX for pgsql-admin@lists.postgresql.org; Tue, 16 May 2023 18:09:06 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyz6Z-000BhI-W6 for pgsql-admin@lists.postgresql.org; Tue, 16 May 2023 18:09:05 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5BBFDEA3B0; Tue, 16 May 2023 18:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684260537; bh=/nCAiVkWg1NgSbivaDZsISzEu9ypyVcbNh8sBT1uPsU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ux2NfYkKgRHnHiK8L+ixb/kjhjusaTMqffeMnFA4fVqHLJ3e4PmEEfLegluwJbvJr NuVI47vRNKxTQ1ghFzVhwFsCu0r73PeWcAu8BIibKUUWkWXXk41cRdn1ZaOZ8N1uTp xG+H/t6clVDG4UA1oFu8UMZX96zBQ6I66oQaqb48Hycbgbsk/Y5X/VhSNClETg9BAF smoopWHuc8v+u+tZmYEHyipK/CPYFMIK5VXHGsB7g4OgaKAbBbJ2A7Um09LwRW0G5Z 8+GwXwYc9sLM2813DJtg9UR96Yf7XM+Xnhgj9hHrxOGr0pET+JZQoy69IFyHbg1APy xkyRnNUYKqGhA== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NP9EBUC2uR94; Tue, 16 May 2023 18:08:56 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id B4A8CE9737; Tue, 16 May 2023 18:08:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684260536; bh=/nCAiVkWg1NgSbivaDZsISzEu9ypyVcbNh8sBT1uPsU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=XntjCqO3KD5pCI1eRXO+DLQO9OQQhK+i/xXv+pe2u5u2C1zDu6+O2XjYACvQuyLi+ PZP5F3B4o+uYS1SZdMsUcB/4XMEXjT0YIOW69aNdubSn1ocIcPQP6tnqOcLYiELSyX a1GtqYHmkhdj7nQQvB4kuo7BWG4C9o9efnEgdZcky6cVt6YTqw3sMJ9VCrjNEZM7oL lQSDXs8PxEzV6ZVjoBA8o9SJOMpOnH6Rw+Ez5WIeQAjX0pk+tNc6ZJJqpZKE6hn5Sm zITgIcxAmgHnsAU0tnnWdUYrkDD1ts8ebUhaeaLHOdLjuPkBKd7wN0WsvLVM5Wqd5L wNkviUITy+8Fg== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: ERROR: could not serialize access due to concurrent update From: Scott Ribe In-Reply-To: Date: Tue, 16 May 2023 12:08:45 -0600 Cc: Laurenz Albe , pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <474BDC88-BFEA-4D62-9D43-E0E7ABA1A13A@elevated-dev.com> References: <580a59b7e6ef605000c5dde862300e4290d9445a.camel@cybertec.at> <6d2162718b0af8504c5f85013b78dc97a2046d59.camel@cybertec.at> To: ROHIT SACHDEVA X-Mailer: Apple Mail (2.3731.500.231) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 16, 2023, at 11:24 AM, ROHIT SACHDEVA = wrote: >=20 > But due to this error our transaction is aborted and application team = are getting these errors in their logs. >=20 > How can I figure this out?=20 > Can there be work around for not getting this error. As suggested previously, repeat the query. It would be good, of course, to reduce the frequency of the errors by = figuring out what is conflicting--are the queries generally taking too = long compared to their frequency? But repeating a query when a lock = conflict blocks it would still be the ultimate fallback, and is pretty = standard practice.